安装python包的镜像源汇总

安装python包的镜像源汇总

用conda或者pip安装python的包的时候,由于官方的服务器在国外安装的时候会比较慢,因此可以用国内的一些镜像,这里我比较推荐用豆瓣,trusted是指把豆瓣放入信任列表。

1
pip install pyinstaller -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

国内其它镜像源如下:

1
2
3
4
5
6
7
8
9
10
11
清华:https://pypi.tuna.tsinghua.edu.cn/simple

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

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

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

山东理工大学:http://pypi.sdutlinux.org/

豆瓣:http://pypi.douban.com/simple

使用其它镜像源的时候,把豆瓣的网址换成上面其它的网址就好了。

-------------本文结束感谢您的阅读-------------