Conflict between Python’s `pip` and Perl’s `pip`
Posted: , Updated: Category: ComputersI am a Python programmer on Windows. I also happen to have Perl installed.
Both Python and Perl have a utility named pip. When I type pip install PACKAGE, I am expecting to ask Python’s pip to install a PACKAGE.
On a new computer I have a roughly 50:50 chance of getting this instead:
| |
Due to Perl’s pip being ahead of Python’s pip in my PATH environment variable.
Fix that by editing your PATH environment variable, so that the C:\Python27\Scripts entry ** comes before the perl\bin entry.
** or C:\tools\python2\Scripts, if you use chocolatey.
| |
Much better.
Addendum: how to figure out which thing is being called
The PowerShell equivalent to the Unix which command is called get-command. If you type get-command pip, you will get a list of all the things Windows thinks pip might refer to.
| |