Error installing "pip install --upgrade"

Installed python via homebrew as such:

brew install python --universal --framework

Follow the instructions at https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python to install the service pack and update. It looks like the pip installation was fine, but whenever I try to use pip to update the distribution or install virtualenv as such

pip install --upgrade distribute

or

pip install virtualenv

I get the following error:

Traceback (last last call): File "/ usr / local / bin / pip", line 5, from pkg_resources import load_entry_point File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/ pkg_resources.py ", line 2603, in work_set.require ( required ) File" /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py ", line 666, requiring required = self .resolve (parse_requirements (requirements)) The file "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in the resolution raise DistributionNotFound (req) # XXX puts more information here pkg_resources.DistributionNotFound: pip == 1.0.2

python , , , , - , , .

My $PATH :

/Users/wg/.rvm/gems/ruby-1.9.3-p125@rails3_2/bin:/Users/wg/.rvm/gems/ruby-1.9.3-p125@global/bin:/Users//.rvm//-1.9.3-P125/:/Users/wg/.rvm/bin:/USR//:/USR///:/USR/:/:/USR/SBIN:/SBIN:/USR//:/USR/X11/:/USR//git/

... which pip, /usr/local/bin/pip ( , , , , pip).

EDIT:

, Lion OS 10.7 XCode Command. , , , , "which easy_install"... return:

/USR////easy_install

, .


!

+5
1

,

pip install --upgrade setuptools

pip install --upgrade distribute
pip install --upgrade pip

pip install --upgrade distribute.

+3

All Articles