pip install gives me this error "can't open file 'pip': [Errno 2] No such file or directory"

Bipin Shetty picture Bipin Shetty · Mar 4, 2017 · Viewed 47.8k times · Source

I have tried using pip -m install win32api, but I still get the error "can't open file 'pip': [Errno 2] No such file or directory"

Can anyone help me on this?

Note: I have renamed the python.exe file as python2 and python3, since I have both versions installed on my pc.

Answer

Paandittya picture Paandittya · Mar 6, 2017
python -m pip install pypiwin32

This should solve the issue. Note that the package name you used is not the canonical name.