$ pip install -U pip
Collecting pip
Using cached pip-9.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-8.1.1
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
问题非常明显。
我告诉pip更新自己,它获取9.0.1包,以某种方式安装8.1.1然后告诉我运行命令我刚刚运行以更新它。
答案 0 :(得分:2)
我设法通过在网站上给出的脚本(apt-get installs version 8.1.1)安装pip来修复它: https://bootstrap.pypa.io/get-pip.py
它会自动卸载旧版本,所以现在一切都井井有条。