pip isn't working when importing something

随声附和 提交于 2019-12-11 07:39:38

问题


To install pymongo for pypy3 2.1 Beta 1, I installed pip using the following commands:

wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
./pypy ez_setup.py --user

where pypy is the executable of pypy3 2.1 Beta 1. After that, pip and pip-3.2 will come to the current directory. But when running pip or pip-3.2, I get the error:

Traceback (most recent call first):
  File "pip-3.2", line 5, in <module>
    from pkg_resources import load_entry_point
zipimport.ZipImportError: pip==1.4.1

It seems that the problem comes from from pkg_resources import load_entry_point of the pip/pip-3.2. But this statement runs OK when I put it in pypy or python3 IDLE. What's the matter? How to solve this problem and proceed to install pymongo for pypy3 2.1 Beta 1? Thank you.

PS: I'm using Ubuntu. python3 is installed in the system. If u need any other information pertaining to solving the question, please comment.

来源:https://stackoverflow.com/questions/18477583/pip-isnt-working-when-importing-something

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!