python -m pip install --upgrade pip does not work

笑着哭i 提交于 2021-01-27 05:34:14

问题


Upgrading pip does not do anything, just tells me to upgrade Pip again and that the requirements are satisfied--however, I am on an old pip version. This is Python27, I get the same issue whether I am in a virtual environment or not.

Output:

C:\Python27>python -m pip install --upgrade pip

Requirement already up-to-date: pip in c:\python27\lib\site-packages

You are using pip version 9.0.1, however version 19.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Versions Installed:

    $ pip --version
    pip 9.0.1 from c:\python27\lib\site-packages (python 2.7)

    $ pip --version
    pip 9.0.1 from c:\users\aroytikh\dev\flask-tutorial\venv\lib\site- 
    packages (python 2.7)
    (venv)

回答1:


I think it how to update pip will help you and make sure that you are running command prompt as Administrator. you can do this by right click on the "Command Prompt" application and choose "Run as administrator" and type this command in your command prompt.

    python -m pip install -U pip

try this if it isn't working for you..

  • Download Pip 19.1.1
  • Install Pip using this command
    $ python -m pip install downloads/pip-19.1.1-py2.py3-none-any.whl

or if it is tar.gz file then

    $ python -m pip install downloads/pip-19.1.1.tar.gz 


来源:https://stackoverflow.com/questions/57062031/python-m-pip-install-upgrade-pip-does-not-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!