推荐几个不错的镜象源(解决了安装requirements.txt超时问题)
解决了安装requirements.txt超时问题:
修改pip的镜像源提高下载速度(推荐)
在这个目录下新建一个pip的文件夹。
新建一个pip.ini的文件,并添加镜像(这里用的阿里的)。
镜像代码:
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
这里推荐几个不错的镜像地址和添加方法:
移除:conda config --remove channels (这里加地址)
添加:conda config --add channels(这里加地址)
conda config --set show_channel_urls yes
的意思是从channel中安装包时显示channel的url,这样就可以知道包的安装来源了。
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/