Python 3.6 on Windows - does a python3 alias get created by installation?

Paul Moore p.f.moore at gmail.com
Wed Oct 9 12:48:05 EDT 2019


No, the Windows builds do not provide versioned executables
(python3.exe or python3.7.exe). Generally, the recommended way to
launch Python on Windows is via the py.exe launcher (py -3.7, or just
py for the default), but if you have Python on your PATH then python
works.

The reason pip has versioned executables is because that's how pip
defines its entry points. It's cross-platform and unrelated to the
conventions the Python core installers follow.

Yes, it's all a bit confusing :-)

Paul

On Wed, 9 Oct 2019 at 17:37, Malcolm Greene <python at bdurham.com> wrote:
>
> I'm jumping between Linux, Mac and Windows environments. On Linux and Mac we can invoke Python via python3 but on Windows it appears that only python works. Interestingly, Windows supports both pip and pip3 flavors. Am I missing something? And yes, I know I can manually create a python3 alias by copying python.exe to python3.exe but that approach has its own set of nuances on locked down servers plus the hassle of keeping these python3 copies up-to-date across Python updates.
>
> Also curious: Do the Windows versions of Python 3.7 and 3.8 provide a python3 alias to start Python?
>
> Thanks!
> Malcolm
> --
> https://mail.python.org/mailman/listinfo/python-list



More information about the Python-list mailing list