Install Python
How to install Python
This document shows how to install Python 3 on Windows.
Some FairCom Scripts require Python 3.
Python 3 comes preinstalled on most MacOS and Linux distributions.
This document shows how to install Python 3 on Windows.
Use the command line to determine if Python is already installed. Open a command prompt (Start+R cmd).
py --version
If the current version of Python is at least Python 3.7.9, you do not need to install Python.
Uninstall previously installed versions of Python. This ensures you can run only the newly installed version of Python.
Open the Apps & Features dialog to add or remove programs.
Search for Python.
Uninstall existing versions
Verify no instances of Python are installed by running the following command and ensuring it returns no files:
where.exe python
Remove all Python programs from the path.
Open System Properties -> Environment Variables -> System Variables -> Path
Click each path containing a reference to Python and click the delete button.
Click OK.
Download a Windows x86-64 executable installer for Python, such as Python 3.12.3
Download the Windows installer (64-bit) for an Intel-based PC or the Windows installer (ARM64) for the less common ARM-based PC.
This downloads an executable with a name like python-3.12.3-amd64.exe
Run the downloaded executable.
Click Add python.exe to PATH
Click Customize installation
Click Next
Configure install options.
Check the box: Install for all users
Ensure Add Python to environment variables is checked.
Click Install
Wait for the following screen to appear.
Verify the path environment variables are correct.
There should be two paths for the specific version of Python you installed: one for Python itself and another for Python scripts.
Click OK.
Using the command line, verify the version of Python matches the version you installed.
py --version
where.exe python