WARNING: You are using pip version 20.1.1; however, version 20.3.3 is available.
You should consider upgrading via the 'Python\python.exe -m pip install --upgrade pip' command.
查看pip是否已安装
Use the following command to check whether pip is installed:
PS C:> py -m pip --version
pip 20.3.3 from D:\codetool\Python\lib\site-packages\pip (python 3.7)
pip X.Y.Z from ...\site-packages\pip (python X.Y)
下载&&安装pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
或者下载 get-pip.py
py get-pip.py
或者
py get-pip.py --no-index --find-links=/local/copies
C:\> py -m pip install SomePackage
[...]
Successfully installed SomePackage
查看Pip版本信息
PS C:> pip show pip
Name: pip
Version: 20.1.1
Summary: The PyPA recommended tool for installing Python packages.
Home-page: https://pip.pypa.io/
Author: The pip developers
Author-email: pypa-dev@groups.google.com
License: MIT
升级Pip(Upgrading pip)
python -m pip install -U pip
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.1.1
Uninstalling pip-20.1.1:
Successfully uninstalled pip-2