pip升级命令失效输入升级指令没有反应

输入python -m pip install --upgrade pip没有反应😇

img

pip install pip
重新安装试过没?
没有的话,可以试试。

  • 帮你找了个相似的问题, 你可以看下: https://ask.csdn.net/questions/7661727
  • 这篇博客你也可以参考下:python -m pip install --upgrade pip命令出错,无法升级pip
  • 除此之外, 这篇博客: pip升级python -m pip install --upgrade pip中的 pip升级 部分也许能够解决你的问题, 你可以仔细阅读以下内容或跳转源博客中阅读:
  • 运行 -> cmd

    python -m pip install --upgrade pip
    

    安装成功显示:
    DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
    Collecting pip
    Downloading pip-20.2.3-py2.py3-none-any.whl (1.5 MB)
    |████████████████████████████████| 1.5 MB 30 kB/s
    Installing collected packages: pip
    Attempting uninstall: pip
    Found existing installation: pip 20.2.2
    Uninstalling pip-20.2.2:
    Successfully uninstalled pip-20.2.2
    WARNING: The scripts pip.exe, pip2.7.exe and pip2.exe are installed in ‘D:\pythonSoft\python2.7\Scripts’ which is not on PATH.
    Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
    Successfully installed pip-20.2.3

  • 您还可以看一下 Toby老师的python机器学习-乳腺癌细胞挖掘课程中的 pip install --user --upgrade package升级包小节, 巩固相关知识点