我正在运行红帽企业Linux(在AWS上)。每当我使用pip时,它都会警告我,我的点数已经过时,我需要通过执行pip install --upgrade pip
来升级它。
但是,当我这样做时,它似乎没有任何效果,只是告诉我同样的事情。这是通告!
我该如何解决这个问题?见下文
$ 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。如何安装新版本?
$ 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]:
答案 0 :(得分:3)
你能从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