Pip更新但安装旧版本

问题描述 投票:0回答:1
$ 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然后告诉我运行命令我刚刚运行更新它。

python pip
1个回答
2
投票

我设法通过在网站上给出的脚本安装pip来修复它(apt-get installs版本8.1.1):https://bootstrap.pypa.io/get-pip.py

它会自动卸载旧版本,所以现在一切正常。

© www.soinside.com 2019 - 2024. All rights reserved.