我昨天大部分时间都在寻找安装的明确答案pip(Python的包管理器).我找不到一个好的解决方案.
我该如何安装?
升级到OSX Mavericks后,我在终端收到此消息:
/usr/bin/python: No module named virtualenvwrapper
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenv has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is
set properly.
Run Code Online (Sandbox Code Playgroud) 我使用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)
经过一个愉快的狩猎之夜后,我很难过如何解决这个问题.
我是python的新手,我已经改变了我的路径指向新的python 2.7,但是pip和easy_install,并且mercurial仍在查看默认安装的2.6版本.我该如何解决?