我刚用ubuntu将pip安装到我的笔记本电脑上。每当我尝试在终端中使用pip时,我都会收到此错误:
lopuj@lopuj-Dell-System-XPS-L502X:~$ pip
Traceback (most recent call last):
File "/usr/local/bin/pip", line 9, in <module>
load_entry_point('pip==1.4.1', 'console_scripts', 'pip')()
File "/usr/local/lib/python3.4/dist-packages/setuptools-1.1.5-py3.4.egg/pkg_resources.py", line 357, in load_entry_point
def get_entry_info(dist, group, name):
File "/usr/local/lib/python3.4/dist-packages/setuptools-1.1.5-py3.4.egg/pkg_resources.py", line 2394, in load_entry_point
break
File "/usr/local/lib/python3.4/dist-packages/setuptools-1.1.5-py3.4.egg/pkg_resources.py", line 2108, in load
name = some.module:some.attr [extra1,extra2]
ImportError: No module named 'pip'
lopuj@lopuj-Dell-System-XPS-L502X:~$ ^C
lopuj@lopuj-Dell-System-XPS-L502X:~$
我怎样才能阻止这种情况发生,所以我只需键入命令,例如&#39; pip install Django == 1.7.1&#39;?
答案 0 :(得分:0)
您的引用
usr/local
但是pip安装在
usr/lib
检查您的安装。我会重新使用esay_install然后打开/关闭终端。