首先确定在windows已经装过python
下载pip压缩包→解压至英文路径下→在命令行窗口进入改pip文件内
python setup.py install
如果提示没有setuptools模块
则同样的方法先下载setuptool模块,再安装pip
换源
在资源管理器的地址栏输入%appdata%
新建pip文件夹,在文件夹下新建.ini配置文件
打开记事本
[global]
timeout = 6000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn
保存名为pip.ini
格式为所有类型