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:\Users\feng\AppData\Roaming\pip\pip.ini

posted @ 2021-10-08 13:02  simadi  阅读(1387)  评论(0编辑  收藏  举报