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
- Have multiple python version downloaded.
- Open Windows Powershell as administrator.
- Use command
cd $HOME\appdata\local\programs\python
and then usels
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
- For each Python version use command
copy python[version]\python.exe python[version]\python[version].exe
For exmaple: Python311 would usecopy python311\python.exe python311\python311.exe
- Open Environment Variables from System Properties and edit Path.
- For each Python version add
c:\users\[user]\appdata\local\programs\python\python[version]\scripts\
andc:\users\[user]\appdata\local\programs\python\python[version]\
- Set default version by moving them up.
- Now python can be called in command prompt using python[version].
Comments NOTHING