我安装了Python 3.x(除了Ubuntu上的Python 2.x)并慢慢开始配对我在Python 2.x中使用的模块.
所以我想知道,对于Python 2.x和Python 3.x,我应该采用什么方法让pip变得简单?
我使用easy_install来安装pip,pip来安装django,virtualenv和virtualenvwrapper.
几周之后我刚刚回到它并且django似乎不再工作了,但更令人担心的是我无法再次启动该过程,因为easy_install返回以下错误:
Traceback (most recent call last):
File "/usr/bin/easy_install-2.7", line 10, in <module>
load_entry_point('setuptools==0.6c12dev-r88846', 'console_scripts', 'easy_install')()
File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 318, in load_entry_point
File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2220, in load_entry_point
ImportError: Entry point ('console_scripts', 'easy_install') not found
Run Code Online (Sandbox Code Playgroud)
经过一个愉快的狩猎之夜后,我很难过如何解决这个问题.
我收到了消息
You are using pip version 8.0.2, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
当我尝试通过pip安装包时.
我按照说明进行了升级pip install --upgrade pip
.现在我收到pip的错误,即使pip --version
检查pip的版本.
Traceback (most recent call last):
File "/usr/local/bin/pip", line 9, in <module>
load_entry_point('pip==8.0.2', 'console_scripts', 'pip')()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 357, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2393, in load_entry_point
raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'pip') not found
Run Code Online (Sandbox Code Playgroud)
我在网上搜索,发现了一些类似的问题,如,这个, …
pip ×2
python ×2
easy-install ×1
importerror ×1
macos ×1
python-2.7 ×1
python-3.x ×1
upgrade ×1