python如何使用镜像安装库

python如何使用镜像安装库

问题:有时候安装库直接使用pip install xxx由于网络的原因会很慢
解决方法:可以使用镜像安装,pip install xxx -i 镜像

例如:pip install pandas==0.21.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

镜像源:

1.清华:https://pypi.tuna.tsinghua.edu.cn/simple

2.阿里云:http://mirrors.aliyun.com/pypi/simple/

3.中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

4.华中理工大学:http://pypi.hustunique.com/

你可能感兴趣的:(python)