Introduction
In this article, I will discuss how we can install and manage multiple Python versions on Windows 11.

Python
Python is an interpreted, high-level, general-purpose programming language created by Guido van Rossum and first released in 1991. He started Python as a hobby project to keep him occupied in the week around Christmas. It got its name from the name of the British comedy troupe Monty Python. It is used in:
- Software Development
- Web Development
- System Scripting
- Mathematics
To learn how to program in Python, visit Python Basics.
You can visit C# Corner Python Learn Series.
Installing multiple versions of Python
I will be using Python 3.10 and Python 2.7.
You can download the installer for Python 2.7 here. You can learn to install python2 on Windows here.
You can download the installer for Python 3.10 here. You can learn to install python3 on Windows here.
Setting up Python Versions
We will now create copies of the python executable and rename them to python27 and python310. This is necessary so that system knows the python version to run.
Open Windows PowerShell as administrator and execute the following command to generate the copies
# Python 2.7:
copy C:\Python27\python.exe C:\Python27\python27.exe
# Python 3.10:
copy C:\Python310\python.exe C:\Python27\python310.exe
Set up Environment Variables
The Environment Variable is a variable that the computer creates and maintains automatically. It assists the system in determining where to install files, locate programs, and check for user and system preferences. It may also be accessed from anywhere on the computer by graphical and command-line tools.
It is required to set up the environment variables so that system knows the executable file that it needs to run on a given command.
Step 1
Press Windows+S to open the search menu and type "environment", and press open.








Jonathan BowesPosted Apr 12, 2022, 12:05 PM
Hi. Set up the 2 versions of python on windows 11 but when I type "python3 it takes me to windows store and when I type "python310" it takes me to python 2.7. Cannot seem to get python 3 to run.