2013-09-24 76 views
3

当试图安装一个软件包的easy_install问我升级分发:蟒蛇 - easy_install的停止工作后分发升级

The required version of distribute (>=0.6.35) is not available, 
and can't be installed while this script is running. Please 
install a more recent version first, using 
'easy_install -U distribute'. 

这似乎很好地工作:

$ easy_install -U distribute 
Searching for distribute 
Reading http://pypi.python.org/simple/distribute/ 
Best match: distribute 0.7.3 
Processing distribute-0.7.3-py2.7.egg 
Removing distribute 0.6.28 from easy-install.pth file 
Adding distribute 0.7.3 to easy-install.pth file 

Using /xxx/software/lib/python2.7/site-packages/distribute-0.7.3-py2.7.egg 
Processing dependencies for distribute 
Finished processing dependencies for distribute 

但现在当我开始使用easy_install我得到这个:

$ easy_install 
Traceback (most recent call last): 
    File "/xx/software/bin/easy_install", line 9, in <module> 
    load_entry_point('distribute', 'console_scripts', 'easy_install')() 
    File "/xx/software/lib/python2.7/site-packages/setuptools-1.1.6-py2.7.egg/pkg_resources.py", line 357, in load_entry_point 
    return get_distribution(dist).load_entry_point(group, name) 
    File "/xx/software/lib/python2.7/site-packages/setuptools-1.1.6-py2.7.egg/pkg_resources.py", line 2393, in load_entry_point 
    raise ImportError("Entry point %r not found" % ((group,name),)) 
ImportError: Entry point ('console_scripts', 'easy_install') not found 

发生了什么事?我该如何解决这个问题

+0

使用''easy_install''而不是''pip'对你来说至关重要? – fjarri

回答

3

尝试手动更新您的设置工具。

wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py 
sudo python ez_setup.py --user 
+2

这对我来说是诀窍。谢谢! – Nils

0

我有同样的问题,然后我发现有easy_install-2.7,我可以正确安装软件包。

2

关于PIP对easy_install的一个不同的问题之后的answer,你可以卸载已安装与使用的easy_install PIP封装:

sudo pip uninstall distribute 

这去除分发错误版本,并再次的easy_install工作。

相关问题