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

原文链接:https://blog.csdn.net/lusing/article/details/104437843


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM