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

也可以修改~/.config/pip/pip.conf


版权声明:本文为lusing原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。