2010-11-13 89 views
2

我通过的easy_install试图库像以下的:蟒蛇easy_install的失败,因为错误的setuptools版本

$ sudo easy_install bbfreeze 

Searching for bbfreeze 
Reading http://pypi.python.org/simple/bbfreeze/ 
Reading http://systemexit.de/bbfreeze/ 
Best match: bbfreeze 0.97.2 
Downloading http://pypi.python.org/packages/source/b/bbfreeze/bbfreeze-0.97.2.zip#md5=16e4981f4d8abaff3053f89be436ac8d 
Processing bbfreeze-0.97.2.zip 
Running bbfreeze-0.97.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Ti7cDj/bbfreeze-0.97.2/egg-dist-tmp-PqrogM 
The required version of setuptools (>=0.6c11) is not available, and 
can't be installed while this script is running. Please install 
a more recent version first, using 'easy_install -U setuptools'. 

(Currently using setuptools 0.6c9 (/Library/Python/2.6/site-packages/setuptools-0.6c9-py2.6.egg)) 

于是,我就setuptools的升级0.6c12但它已经安装:

$ sudo easy_install -U setuptools 

Searching for setuptools 
Reading http://pypi.python.org/simple/setuptools/ 
Reading http://peak.telecommunity.com/snapshots/ 
Best match: setuptools 0.6c12dev-r85381 
Processing setuptools-0.6c12dev_r85381-py2.6.egg 
setuptools 0.6c12dev-r85381 is already the active version in easy-install.pth 
Installing easy_install script to /usr/local/bin 
Installing easy_install-2.6 script to /usr/local/bin 

Using /Library/Python/2.6/site-packages/setuptools-0.6c12dev_r85381-py2.6.egg 
Processing dependencies for setuptools 
Finished processing dependencies for setuptools 

就像这样:

$ ls -l /Library/Python/2.6/site-packages/ 
-rw-r--r-- 1 some staff 333775 11 13 23:59 setuptools-0.6c12dev_r85381-py2.6.egg 
-rw-r--r-- 1 root wheel 328075 2 6 2010 setuptools-0.6c9-py2.6.egg 

我使用Mac OS X 10.6.4。我该如何解决这个easy_install的错误引用?

谢谢。

回答

2

要使用较新版本的setuptools,您需要使用由其安装的较新版本的easy_install。注意行:

Installing easy_install script to /usr/local/bin 

试试这个:

sudo /usr/local/bin/easy_install bbfreeze 
+0

非常感谢您!我可以安装它! – Emmettoc 2010-11-15 20:48:51