学习scikit-learn时,需要装一些依赖包,本想偷个懒直接在pycharm里面装,结果安装失败。
然后又用pip install package安装,又出现WARNING:Retrying...问题。
查了一些资料后,得知出现这个问题是由于镜像源,目前国内的镜像如下:
阿里云 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/
解决方法1
step1:创建一个文本文件pip.ini,内容如下
这个文件是将 pip 的镜像源切换到阿里云的镜像源
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com