Pages

Friday, May 3, 2013

sudo: pip: command not found エラー Mac OS X

Djangoをマックでインストールしようと思って以下のコマンドを打てみた。
sudo pip install Django

だが、以下の様な結果が帰ってきた。
sudo: pip: command not found

その場合は、pipコマンドをeasy_installを使ってインストールする必要がある。

sudo easy_install pip

多分以下の様な結果が帰ってくるはず。

Searching for pip
Reading http://pypi.python.org/simple/pip/
Reading http://www.pip-installer.org
Reading http://pip.openplans.org
Best match: pip 1.3.1
Downloading http://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#md5=cbb27a191cebc58997c4da8513863153
Processing pip-1.3.1.tar.gz
Writing /tmp/easy_install-PqMIO5/pip-1.3.1/setup.cfg
Running pip-1.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-PqMIO5/pip-1.3.1/egg-dist-tmp-YmSgST
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.txt' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
Adding pip 1.3.1 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip-2.7 script to /usr/local/bin
Installed /Library/Python/2.7/site-packages/pip-1.3.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip

Requirement already satisfied (use --upgrade to upgrade): Django in /Library/Python/2.7/site-packages
Cleaning up...

No comments:

Post a Comment