Overview
Grupo de Anda projects are designed to work with Python 3.11 and Python 3.13. This guide will walk you through installing Python and Visual Studio Code for both Windows and Linux (Ubuntu) systems.The project has been specifically tested with Python 3.11.14 and Python 3.13. Using other versions may lead to compatibility issues.
Supported Python Versions
- Python 3.11.14 (Recommended)
- Python 3.13
Installation Steps
Download Python
Visit the official Python website at https://www.python.org/Download Python 3.11.14 for your operating system.
Verify Installation
Open a terminal or command prompt and verify Python is installed:Or on Linux:You should see the Python version number displayed.
Install Visual Studio Code
Download VS Code from https://code.visualstudio.com/downloadFor detailed installation instructions for both Python and VS Code, watch this helpful video tutorial:Python & VS Code Setup Tutorial
VS Code Python Setup
After installing VS Code, you’ll need to configure it for Python development:Install Python Extension
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for “Python”
- Install the official Python extension by Microsoft
Running Python Code
Once everything is set up, you can run Python code in VS Code:- Press F5 to run in debug mode
- Right-click and select “Run Python File in Terminal”
- Use the Run button in the top-right corner
Depending on the program, it may run in the terminal or open a graphical user interface (GUI).
Platform Considerations
Ubuntu-Specific Notes
Key Ubuntu considerations:- System uses Python internally for core functionality
- Installing or updating libraries system-wide can break Ubuntu
- Always use virtual environments (see next guide)
- The
python3-venvpackage is required for virtual environments
Windows Notes
- Ensure Python is added to PATH during installation
- You may need to use
pythoninstead ofpython3in commands - Virtual environments are recommended but not critical for system stability
Next Steps
After installing Python, proceed to:- Set up a virtual environment (Critical for Ubuntu users)
- Install project dependencies
- Set up Arduino hardware (if working with hardware projects)
Troubleshooting
'python' is not recognized as a command
'python' is not recognized as a command
Windows: Python wasn’t added to PATH during installation. Reinstall Python and check “Add Python to PATH”.Linux: Use
python3 instead of python.Permission denied on Linux
Permission denied on Linux
Don’t use
sudo with pip. Instead, use a virtual environment or install with the --user flag:Multiple Python versions installed
Multiple Python versions installed
You can specify the version explicitly:Set your preferred version in VS Code using “Python: Select Interpreter”.
