Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No such file or directory: '/usr/local/bin/pip'

Tags:

python

macos

pip

I had pip installed earlier on my OSX, but its not working somehow. So, i was trying to install pip again, using the command :

sudo easy_install pip

But it gives me the error as below :

pip 9.0.1 is already the active version in easy-install.pth
Installing pip script to /usr/local/bin
error: [Errno 2] No such file or directory: '/usr/local/bin/pip'

I am neither able to use pip, nor install it.

like image 930
Sarang Manjrekar Avatar asked Dec 22 '16 03:12

Sarang Manjrekar


People also ask

How do I add a directory to the pip PATH?

Click on the Advanced system settings link on the left panel. Click Environment Variables. Under System Variables, double-click the variable PATH. Click New, and add the directory where pip is installed, e.g. C:Python33Scripts, and select OK.


2 Answers

Just run:
$ hash -r
in bash and it will be solved.

like image 122
Ebin Joseph Avatar answered Sep 19 '22 00:09

Ebin Joseph


I've got in the same situation

what I do is remove pip file in /usr/local/bin and reinstall pip

it worked!!

like image 39
Irsyad Mhd Ilham Avatar answered Sep 21 '22 00:09

Irsyad Mhd Ilham