Python使用阿里云镜像

Python使用阿里云镜像
临时使用
pip install -i https://mirrors.aliyun.com/pypi/simple/ 包名

以后都使用阿里云的源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

查看设置的结果
pip config list

取消设置
pip config unset global.index-url

也可以修改C:UsersfengAppDataRoamingpippip.ini

原文地址:https://www.cnblogs.com/simadi/p/15379283.html