Python not showing correct version

Barry Scott barry at barrys-emacs.org
Sat Apr 1 05:52:53 EDT 2023



> On 31 Mar 2023, at 22:02, Eryk Sun <eryksun at gmail.com> wrote:
> 
> 
> The OP installed the standard Python 3.8 distribution, which does
> install the launcher by default. The launcher can run all installed
> versions, including store app installations. By default it runs the
> highest available version, which will probably be the 3.10 store app
> in the OP's case. To make 3.8 the default without having to remove
> 3.10, set the environment variables "PY_PYTHON=3.8" and
> "PY_PYTHON3=3.8" in the user environment.

I find user environment on windows to be less flexible to work with then
adding a py.ini. On my Windows 11 I added %userprofile%\AppData\Local\py.ini.
To make python 3.8 the default that py.exe uses put this in py.ini:

[defaults]
python=3.8-64
python3=3.8-64

Barry


> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 



More information about the Python-list mailing list