Pip install on OS X Mavericks with the error: / usr / local / bin / pip: There is no such file or directory

I am running a version of Python 2.7.5 that comes with OSX.

I tried installing pip using sudo easy_install pip And python get-pip.py

When I try to install pip, I get the following error with easy_install:

Processing pip
Running setup.py -q bdist_egg --dist-dir /Users/XXXX/pip/egg-dist-tmp-VtRwku
warning: no files found matching 'pip/cacert.pem'
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.rst' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
no previously-included directories found matching 'tasks'
pip 1.6.dev1 is already the active version in easy-install.pth
Installing pip script to /usr/local/bin
error: /usr/local/bin/pip: No such file or directory

When I try to install pip using get-pip.py

Requirement already up-to-date: pip in /Library/Python/2.7/site-packages/pip-1.6.dev1-py2.7.egg
  • Doesn’t show anything when I write help
+4
source share
3 answers

@mirra.p , , python 2, , - python - . , , , , , /usr/local/bin folde pip, .

pip:

/Python/2.7/site-packages/pip-1.6.dev1-py2.7.egg

, , .

pip , , , , .

:

( ) Ubuntu

pip

pip

cp <location provided by which pip> <location where to copy pip file>

cp/Library/Python/2.7/site-packages/pip/usr/local/bin

mirra.p.

, .

+1

, Cellar, , Python Homebrew.

, /usr/local/bin/pip - . , , , .

; Python , Homebrew, Python. , brew ( ) .bashrc .

/usr/local/bin, , ​​, ( root-). ; Homebrew, , .

, Howebrew -

ln -s /usr/local/Cellar/something/something/python-2.7.3 /usr/local/bin/python

/usr/local/Cellar/something/something , - , , . , pip .

Homebrew , .bashrc , . ; , .

, unset PYTHONPATH, . /usr/local/bin , PATH /usr/bin, ( );

PATH=/usr/bin:$PATH

Bash; , .

0

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

  • which pip. : /usr/local/bin
  • pip

cp /usr/local/bin /usr/local/bin/pip

.

-1

Source: https://habr.com/ru/post/1543123/


All Articles