今天看了爬虫实战,于是自己打算在pycharm里试一试,结果遇到了这个问题:
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/repodata.json.bz2>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.
ConnectionError(ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out."))
看了网上大家的解决方法,尝试着添加了清华的镜像源,并用“conda update conda”命令测试,结果说
然后看到说可能是防火墙的问题,于是使用命令行
conda config --set ssl_verify false
设置之后 anaconda还是无法更新。
接下来是服务代理问题,但是博主用的是ubuntu,所以看了下我的发现8888端口没有被占用。
然后又找到一篇博客说要把“C:\Users\user”路径下的.condarc里的-default删掉,删掉后发现还是不行!
之后又找到一篇博客说要把链接的https修改成http,我试了一下,还是不行
我打算把标注的这一句删除试试。 还是不行
接着按照下面这篇博客说的,加了些镜像源的链接之后似乎就好了,起码不报错了。