
Managing Multiple Python Versions on Windows
code
python
After downloading a new python version it's often confusing to call for the specific version from windows command prompt.
Goal#
Easy way to call a specific version in a way like:
-> Python 3.10
-> Python 3.11
etc
Steps#
- Have multiple python version downloaded.
- Open Windows Powershell as administrator.
- Use command
and then use
to list python directories like following.
Loading...
- For each Python version use command
For exmaple: Python311 would use
- Open Environment Variables from System Properties and edit Path.
- For each Python version add
and
- Set default version by moving them up.
- Now python can be called in command prompt using python[version].