(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
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
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:
On 17 September 2016 at 11:55, João Matos
wrote: 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 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
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"
Hello, Ok, thanks for the feedback. Best regards, JM domingo, 18 de Setembro de 2016 às 13:52:44 UTC+1, Steve Dower escreveu:
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 ------------------------------ From: João Matos javascript: Sent: 9/17/2016 3:57 To: python...@python.org javascript: 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...@python.org javascript: 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