- 1 year ago
Cannot install python both 3.7.3 and 3.7.4 on win10
Installing multiple versions of Python on Windows is possible, but it requires some additional steps to ensure that the installations do not conflict with each other. Here's a general process to follow:
Download the desired Python installation packages: Download the installers for Python 3.7.3 and Python 3.7.4 from the official Python website (https://www.python.org/downloads/). Make sure to choose the correct installer for your system architecture (32-bit or 64-bit).
Choose different installation directories: During the installation process, specify different installation directories for each Python version. For example, you can install Python 3.7.3 in
C:\Python37
and Python 3.7.4 inC:\Python374
. This will prevent the installations from overlapping.Update the environment variables: After the installations, update the
PATH
environment variable to include both Python installations. Open the "System Properties" window, go to the "Advanced" tab, click on "Environment Variables," and edit thePATH
variable by adding the paths to thepython
andpython/scripts
directories of both Python installations.Use specific Python versions: When you want to use a specific Python version, you can specify the version explicitly by using the full path to the Python executable. For example, instead of running
python script.py
, you would runC:\Python37\python.exe script.py
to use Python 3.7.3, orC:\Python374\python.exe script.py
to use Python 3.7.4.
By following these steps, you should be able to install and use multiple versions of Python on your Windows 10 machine without conflicts.