After this lesson, you can
- Install from the official Python website.
- Verify Python from a terminal.
- Avoid changing a Linux system Python environment.
1. Windows
- 1Open the official Python Downloads page.
- 2Download the supported Windows release offered for your computer.
- 3Open the installer.
- 4If shown, select Add python.exe to PATH.
- 5Complete installation.
- 6Open PowerShell or Command Prompt and check the version.
Check Python
python --versionWindows alternative
py --versionOpen Python
pyExit Python
exit()2. macOS
Download the official macOS installer from Python.org. Do not assume the command python points to Python 3.
Check Python 3
python3 --version3. Linux
Many Linux distributions already include Python. Check it first and use a virtual environment for coursework rather than modifying the system Python.
Check Python 3
python3 --versionYour setup progress