简体   繁体   English

为什么不从pip版本6.1.1升级到8.1.1工作?

[英]Why won't upgrading from pip version 6.1.1 to 8.1.1 work?

I'm running Red Hat Enterprise Linux (on AWS). 我正在运行Red Hat Enterprise Linux(在AWS上)。 Whenever I use pip, it warns me that my pip is out of date and that I need to upgrade it by doing pip install --upgrade pip . 每当我使用pip时,它都会警告我,我的点数已经过时,我需要通过pip install --upgrade pip来升级它。

But when I do that it seemingly has no effect and simply tells me the same thing. 但是,当我这样做时,它似乎没有任何效果,只是告诉我同样的事情。 It's circular! 这是循环的!

How can I fix this? 我怎样才能解决这个问题? See below 见下文

$ pip install --upgrade pip
You are using pip version 6.0.8, however version 8.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already up-to-date: pip in my-virtualenv/lib/python2.7/site-packages

Since the aforementioned pip install --upgrade pip` doesn't seem to work, I just tried uninstalling and reinstalling python-pip. 由于前面提到的pip install --upgrade pip`似乎不起作用,我只是尝试卸载并重新安装python-pip。 When I did that it tells me it will install pip 6.1.1.-1.21.amzn1. 当我这样做时,它告诉我它将安装pip 6.1.1.-1.21.amzn1。 How can I make it install the newer version?? 如何让它安装新版本?

$ sudo yum install python-pip
Loaded plugins: priorities, update-motd, upgrade-helper
5 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package python26-pip.noarch 0:6.1.1-1.21.amzn1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================================================
Package                               Arch                            Version                                    Repository                          Size
===========================================================================================================================================================
Installing:
 python26-pip                          noarch                          6.1.1-1.21.amzn1                           amzn-main                          1.9 M

Transaction Summary
===========================================================================================================================================================
Install  1 Package

Total download size: 1.9 M
Installed size: 6.4 M
Is this ok [y/d/N]:

Can you just download pip 8.1.1 from github then install it from commandline? 你能从github下载pip 8.1.1然后从命令行安装吗?

$ wget https://github.com/pypa/pip/archive/8.1.1.zip
$ unzip 8.1.1.zip
$ cd pip-8.1.1/
$ python setup.py install

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

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