[issue44934] Windows installer: Append Python to PATH instead of prepending it

Steve Dower report at bugs.python.org
Tue Aug 17 10:56:05 EDT 2021


Steve Dower <steve.dower at python.org> added the comment:

Prepending is used because it makes the most recently installed version of Python the "active" one. It also ensures that a deliberate install is going to override any applications that may have put their own copy on PATH (deliberately or otherwise). There's no real mechanism for managing multiple Python entries on PATH, so it just works out better to prepend and let the latest install win.

However, we also disable this option by default because it can lead to confusion like what you've experienced. The best option here is to leave it disabled and update PATH yourself (or use "py.exe" which is always on PATH), since you've got the best awareness of your environment.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44934>
_______________________________________


More information about the Python-bugs-list mailing list