Search code examples
pythonmacospip

No such file or directory: '/usr/local/bin/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.


Solution

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