Python换源之后,有些包需要官方的源才能下载
一次性方法:
pip install xxxx -i https://pypi.org/simple
附带一些国内的镜像源:
http://pypi.douban.com/simple/ 豆瓣(推荐)
http://mirrors.aliyun.com/pypi/simple/ 阿里(推荐)
http://pypi.hustunique.com/simple/ 华中理工大学
http://pypi.sdutlinux.org/simple/ 山东理工大学
http://pypi.mirrors.ustc.edu.cn/simple/ 中国科学技术大学
https://pypi.tuna.tsinghua.edu.cn/simple/ 清华大学(推荐)
http://pypi.hustunique.com/ 华中科技大学
http://mirrors.cloud.tencent.com/pypi/simple 腾讯
https://repo.huaweicloud.com/repository/pypi/simple/ 华为
永久换源的方法(以清华源为例)
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
版权声明:本文为qq_44319167原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。