方法一:(本人亲试)

我的是 Python 3.8,安装 pip 3

1、找到你的python的安装路径下的Scripts 文件夹(里面应该是没有有关于pip的文件的)

(如何找到python安装在哪:win + R ···· > cmd ····> 输入 where python )

这是我的路径

安装Python后再安装Pip_python安装

2、下载 ​​get-pip.py​​​( ​​https://bootstrap.pypa.io/get-pip.py​​)(打开链接可能一直转圈,没关系,直接Ctrl+S保存)文件到 Scripts 文件夹下,命名为 get-pip.py 

安装Python后再安装Pip_自动下载_02

3、在该文件夹(script)中进入cmd

(在文件夹中进入cmd的方式:

直接在script文件夹中点击上方的地址栏,输入cmd

比如我的:

安装Python后再安装Pip_python安装

安装Python后再安装Pip_python_04

回车

安装Python后再安装Pip_python_05

3、在进入的cmd中输入:

python get-pip.py

然后就会自动下载(如果网络不好连接超时,换个好点的网,重新下载就好了)

安装Python后再安装Pip_python_06

以上显示表示已经下载并安装,

4、为确保安装成功,接着在下面输入:

python -m pip --version

安装Python后再安装Pip_自动下载_07

以上显示表示安装成功了

(或者直接win + R 进入cmd 输入 pip,会有pip的一系列信息)

5、这时候看Scripts 文件夹下就有了有关pip的(18:13 那四个)文件

安装Python后再安装Pip_python安装_08

 

方法二:(某群友的方法,感觉比较简单)

1、win + R ,输入 .   确定

安装Python后再安装Pip_自动下载_09

2、在此新建pip文件夹,再在pip文件夹中新建pip.ini文件

安装Python后再安装Pip_自动下载_10

3、在pip.ini该文件中输入一下内容并保存即可: 

[global]
index-url = https://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host=mirrors.aliyun.com