1.问题描述及解决方法
我们在新建house(python2.7)的环境下
执行
conda install -n house pandas-datareader
却发现http请求不存在的错误,具体原因是因为
由于清华源对anaconda的不再支持,导致了我们请求错误,所以我们需要更换源,为了防止错误的发生。
1.1 还原anaconda的源
conda config --remove-key channels
1.2 更换中科院源
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
更换中科院源以后,我们发现问题得已解决
2.用anaconda自带的pip安装
2.1在更新源以后,我们通过anaconda install去给不同的环境安装所需要的库,