简体   繁体   English

点更新,但安装了旧版本

[英]Pip updates but installs old version

$ 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.

The problem is pretty self-explanatory. 问题是不言自明的。

I tell pip to update itself, it gets the 9.0.1 package, installs 8.1.1 somehow then tells me to run the command i just ran to update it. 我告诉pip进行自我更新,它获取9.0.1软件包,以某种方式安装8.1.1,然后告诉我运行我刚运行的命令以对其进行更新。

I managed to fix it by installing pip trough the script given at the website(apt-get installs version 8.1.1): https://bootstrap.pypa.io/get-pip.py 我设法通过在网站上提供的脚本安装pip来修复它(apt-get安装版本8.1.1): https : //bootstrap.pypa.io/get-pip.py

It automatically uninstalled the old version so everything is in order now. 它会自动卸载旧版本,因此现在一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM