当前位置:网站首页>Reduce the pip to the specified version (upgrade the PIP through CMP and reduce it to the original version)

Reduce the pip to the specified version (upgrade the PIP through CMP and reduce it to the original version)

2022-06-24 22:00:00 Jingwen · red spirit

 Upgrade to the latest version of the script :python -m pip install --upgrade pip
 Specify the script for version up and down :python -m pip install pip==21.2.4(22.1.2)
 View this version of the script :pip show pip
C:\Users\euweb>python -m pip install pip==21.2.4
Defaulting to user installation because normal site-packages is not writeable
Collecting pip==21.2.4
  Downloading pip-21.2.4-py3-none-any.whl (1.6 MB)
     ---------------------------------------- 1.6/1.6 MB 4.1 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 22.1.2
    Uninstalling pip-22.1.2:
      Successfully uninstalled pip-22.1.2
  WARNING: The scripts pip.exe, pip3.10.exe and pip3.exe are installed in 'C:\Users\euweb\AppData\Roaming\Python\Python310\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-21.2.4

C:\Users\euweb>pip show pip
Name: pip
Version: 21.2.4
Summary: The PyPA recommended tool for installing Python packages.
Home-page: https://pip.pypa.io/
Author: The pip developers
Author-email: [email protected]
License: MIT
Location: c:\users\euweb\appdata\roaming\python\python310\site-packages
Requires:
Required-by:

原网站

版权声明
本文为[Jingwen · red spirit]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241519100830.html