安装python包的镜像源汇总
安装python包的镜像源汇总
用conda或者pip安装python的包的时候,由于官方的服务器在国外安装的时候会比较慢,因此可以用国内的一些镜像,这里我比较推荐用豆瓣,trusted是指把豆瓣放入信任列表。
1 | pip install pyinstaller -i http://pypi.douban.com/simple --trusted-host pypi.douban.com |
国内其它镜像源如下:
1 | 清华:https://pypi.tuna.tsinghua.edu.cn/simple |
使用其它镜像源的时候,把豆瓣的网址换成上面其它的网址就好了。
-------------本文结束感谢您的阅读-------------