Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 209
Bipin Shetty Avatar asked Mar 04 '17 22:03

Bipin Shetty


People also ask

Can't open file Errno 2 No such file or directory?

The Python "FileNotFoundError: [Errno 2] No such file or directory" occurs when we try to open a file that doesn't exist in the specified location. To solve the error, move the file to the directory where the Python script is located if using a local path, or use an absolute path.


1 Answers

python -m pip install pypiwin32

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

like image 166
Paandittya Avatar answered Oct 12 '22 02:10

Paandittya