使用python大都会使用Anaconda来管理python版本和下载第三方包,这样就不用自己手动安装各个版本的python,同时下载包时也是极其的方便。
但是对于刚开始使用Anaconda的小伙伴,最大的问题可能就是使用Anaconda下载第三方包时速度慢的问题;网上大多数的解决方案都是建议将源修改为清华的镜像源,但是对于我来说问题依旧。
而在将源修改为中科大的源后问题才终于得到解决
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
使用清华镜像源下载第三方包依旧缓慢的小伙伴可以试试使用中科大的源
使用Anaconda下载包时,必须把本机的代理软件关闭,比如抓包工具Fiddler、F墙工具等等,不然会一直报错ValueError: check_hostname requires server_hostname