【发布时间】:2018-09-27 14:49:53
【问题描述】:
安装软件时我的终端收到一条消息:You are using pip version 8.1.1, however version 10.0.0 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
于是我升级了pip版本:$ pip install --upgrade pip
现在我收到此错误:
~$ pip install ipython
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main
【问题讨论】:
-
是的。我的 Python 版本是 2.7.12。这适用于 Python 3.6。我是初学者。那么我应该使用 python 3.6 的第一个解决方案吗?
-
@AfsanAbdulaliGujarati :是的....这对我不起作用。
-
@AfsanAbdulaliGujarati :使用 pip2 而不是 pip。这对我有用。不知道将来会发生什么。 :(
标签: python python-2.7 ubuntu pip ubuntu-16.04