当然是更换pip数据源啦
直接把pip install xxxx
换成 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ xxx
国内常用的数据源如下所示:
(1)阿里云 http://mirrors.aliyun.com/pypi/simple/
(2)豆瓣http://pypi.douban.com/simple/
(3)清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
(4)中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
(5)华中科技大学http://pypi.hustunique.com/

为了解决pip安装Python包时的网络问题,可以更换pip的数据源。建议使用国内镜像,如阿里云、豆瓣、清华大学、中国科学技术大学和华中科技大学的镜像。将pip install命令后面加上-i参数和相应的镜像地址,即可加速包的下载和安装。
2万+

被折叠的 条评论
为什么被折叠?



