(Windows-only - calling Steve Dower) Consider adding a symlink to pip in the same location as the py launcher

Hello, If Py3.5 is installed in user mode instead of admin (all users) and we follow your advice that we shouldn't add it to the PATH env var, we can execute Python using the py launcher, but we can't use pip. Please consider adding a pip symlink in the same location as the py launcher. Best regards, JM

On 17 September 2016 at 11:55, João Matos <jcrmatos@gmail.com> wrote:
One problem with this is that the py launcher can handle multiple versions of Python installed on the same machine, which the pip executable can't. To launch pip without having the Python directory on PATH, you can use "py -m pip". It's not quite as convenient as plain "pip", but it avoids the "which version?" problem. Paul

Hello, OK, I didn't know that option. Thanks. May I suggest adding a notice to the Windows Python Installer alerting to use py instead of python and py -m pip instead of pip (only if the user doesn't choose the option to add it to the path, of course)? On the other hand, maybe instead of a pip symlink, could it be a pip executable that uses the same logic as py launcher to find the correct pip? Best regards, JM On 17-09-2016 12:10, Paul Moore wrote:

I'd like to add a launcher in the same style as py.exe, but that would upset people who manually configure their PATH appropriately. Personally, I find "py.exe -m pip" quite okay, but appreciate the idea. I'm thinking about this issue (also for other scripts). Top-posted from my Windows Phone -----Original Message----- From: "João Matos" <jcrmatos@gmail.com> Sent: 9/17/2016 3:57 To: "python-ideas@python.org" <python-ideas@python.org> Subject: [Python-ideas] (Windows-only - calling Steve Dower) Consider addinga symlink to pip in the same location as the py launcher Hello, If Py3.5 is installed in user mode instead of admin (all users) and we follow your advice that we shouldn't add it to the PATH env var, we can execute Python using the py launcher, but we can't use pip. Please consider adding a pip symlink in the same location as the py launcher. Best regards, JM _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/

On 17 September 2016 at 11:55, João Matos <jcrmatos@gmail.com> wrote:
One problem with this is that the py launcher can handle multiple versions of Python installed on the same machine, which the pip executable can't. To launch pip without having the Python directory on PATH, you can use "py -m pip". It's not quite as convenient as plain "pip", but it avoids the "which version?" problem. Paul

Hello, OK, I didn't know that option. Thanks. May I suggest adding a notice to the Windows Python Installer alerting to use py instead of python and py -m pip instead of pip (only if the user doesn't choose the option to add it to the path, of course)? On the other hand, maybe instead of a pip symlink, could it be a pip executable that uses the same logic as py launcher to find the correct pip? Best regards, JM On 17-09-2016 12:10, Paul Moore wrote:

I'd like to add a launcher in the same style as py.exe, but that would upset people who manually configure their PATH appropriately. Personally, I find "py.exe -m pip" quite okay, but appreciate the idea. I'm thinking about this issue (also for other scripts). Top-posted from my Windows Phone -----Original Message----- From: "João Matos" <jcrmatos@gmail.com> Sent: 9/17/2016 3:57 To: "python-ideas@python.org" <python-ideas@python.org> Subject: [Python-ideas] (Windows-only - calling Steve Dower) Consider addinga symlink to pip in the same location as the py launcher Hello, If Py3.5 is installed in user mode instead of admin (all users) and we follow your advice that we shouldn't add it to the PATH env var, we can execute Python using the py launcher, but we can't use pip. Please consider adding a pip symlink in the same location as the py launcher. Best regards, JM _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
participants (3)
-
João Matos
-
Paul Moore
-
Steve Dower