相关疑难解决方法(0)

如何使用Python 3.x和Python 2.x一起使用pip

我安装了Python 3.x(除了Ubuntu上的Python 2.x)并慢慢开始配对我在Python 2.x中使用的模块.

所以我想知道,对于Python 2.x和Python 3.x,我应该采用什么方法让pip变得简单?

python pip python-2.7 python-3.x

187
推荐指数
7
解决办法
19万
查看次数

easy_install:ImportError:找不到入口点('console_scripts','easy_install')

我使用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 macos easy-install

27
推荐指数
1
解决办法
2万
查看次数

ImportError:在Mac上找不到入口点('console_scripts','pip')

我收到了消息

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 upgrade importerror

4
推荐指数
1
解决办法
5723
查看次数