After downloading a new python version its often coonfusing to call for the specific version from windows command prompt.

Easy way to call a specific version in a way like:
python310 -> Python 3.10
python311 -> Python 3.11
etc

  1. Have multiple python version downloaded.
  2. Open Windows Powershell as administrator.
  3. Use command cd $HOME\appdata\local\programs\python and then use ls to list python directories like following.
    Directory: C:\Users\*******\appdata\local\programs\python
    Mode                 LastWriteTime         Length Name
    d-----         00/00/0000  00:00 AM                Python310
    d-----         00/00/0000  00:00 AM                Python311
  4. For each Python version use command copy python[version]\python.exe python[version]\python[version].exe
    For exmaple: Python311 would use copy python311\python.exe python311\python311.exe
  5. Open Environment Variables from System Properties and edit Path.
  6. For each Python version add c:\users\[user]\appdata\local\programs\python\python[version]\scripts\ and c:\users\[user]\appdata\local\programs\python\python[version]\
  7. Set default version by moving them up.
  8. Now python can be called in command prompt using python[version].

qwq~