Python comes with an ensurepip module1, which can install pip in a Python environment.
在Linux终端或者Windows命令行(或者Powershell)中执行命令:
Linux
$ python -m ensurepip --upgrade
MacOS
$ python -m ensurepip --upgrade
Windows
C:> py -m ensurepip --upgrade
get-pip.pyThis is a Python script that uses some bootstrapping logic to install pip.
下载这个文件:https://bootstrap.pypa.io/get-pip.py
也可以手动复制保存成.py后缀的文件。
如果上面的链接失效,可以用这个:https://download.csdn.net/download/Datapad/81271161
在Linux终端或者Windows命令行(或者Powershell)中执行命令:
Linux
$ python get-pip.py
MacOS
$ python get-pip.py
Windows
C:> py get-pip.py