Eryk Sun <eryk...@gmail.com> added the comment:

> I understand that py.exe is at least in part used to make handling 
> multiple python versions easier. 

On the command line the launcher supports multiple installed versions via the 
"-X[.Y][-32|-64]" option. In scripts it supports multiple versions via virtual 
shebangs, e.g. "#!python3.8-32". But shebangs can also use fully-qualified 
Windows paths, which allows directly running a script in a particular virtual 
environment, e.g. "#!C:\VEnv\SparkEnv\Scripts\python.exe". Without the 
launcher, the .py file association is locked on a single Python installation.

> I don't find py.exe. Should it be installed besides python.exe? 
> If not, where else? 

If installed for all users, the py launcher is in the Windows directory. 
Otherwise it's in the user's local application data in the directory 
"%LocalAppData%\Programs\Python\Launcher".

Try repairing the installation to ensure the py launcher is installed, 
preferably for all users if you have admin access.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40253>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to