cocdeshijie
Blog
Managing Multiple Python Versions on Windows

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#

  1. Have multiple python version downloaded.
  2. Open Windows Powershell as administrator.
  3. Use command and then use to list python directories like following.
Loading...
  1. For each Python version use command For exmaple: Python311 would use
  2. Open Environment Variables from System Properties and edit Path. https://img.qwq.xyz/2023/e58da3fc92f28.png
  3. For each Python version add and
  4. Set default version by moving them up.
  5. Now python can be called in command prompt using python[version].