Overview
My exact goal is to set my preferred version of python as the default when I type python3 into a command prompt or powershell prompt. I’ve tried everything but can’t figure it out.
I have the following Python versions installed (Output of py -0p):
-V:3.14[-64] C:\Users\user\AppData\Local\Python\pythoncore-3.14-64\python.exe
-V:3.13[-64] * C:\Users\user\AppData\Local\Python\pythoncore-3.13-64\python.exe
-V:3.12[-64] C:\Users\user\AppData\Local\Python\pythoncore-3.12-64\python.exe
I’ve set the following environment variables system-wide, and for my user account:
PY_PYTHON = "3.13"
PY_PYTHON3 = "3.13"
PYTHON_MANAGER_DEFAULT = "3.13"
PYTHON_MANAGER_DEFAULT_PLATFORM = "-64"
PYTHONUTF8 = "1"
Unfortunately when I type python3 into a command prompt, it launches the python 3.14 shell.
How can I ensure that when I enter python3 in a CLI prompt that it launches my preferred version of python (3.13)?
Additional Info:
I’ve disabled two of the app execution aliases in my Win11 settings hoping this might solve the issue:
But it’s not working.
Can someone point me in the right direction? Thanks in advance for any help!
