为什么无法从点子版本6.1.1升级到8.1.1起作用? [英] Why won't upgrading from pip version 6.1.1 to 8.1.1 work?

查看:124
本文介绍了为什么无法从点子版本6.1.1升级到8.1.1起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Red Hat Enterprise Linux(在AWS上).每当我使用pip时,它都会警告我我的pip已过期,并且需要通过执行pip install --upgrade pip对其进行升级.

I'm running Red Hat Enterprise Linux (on 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.

但是当我这样做时,它似乎没有任何作用,只是告诉我同样的事情.是圆形的!

But when I do that it seemingly has no effect and simply tells me the same thing. It's circular!

我该如何解决?见下文

$ 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

由于上述的pip install --upgrade pip`似乎不起作用,我只是尝试卸载并重新安装python-pip.当我这样做时,它会告诉我它将安装pip 6.1.1.-1.21.amzn1.如何安装更新版本?

Since the aforementioned pip install --upgrade pip` doesn't seem to work, I just tried uninstalling and reinstalling python-pip. When I did that it tells me it will install 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]:

推荐答案

能否从github下载pip 8.1.1,然后从命令行安装它?

Can you just download pip 8.1.1 from github then install it from commandline?

$ 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

这篇关于为什么无法从点子版本6.1.1升级到8.1.1起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆