Anaconda下载出现CondaHTTPError: HTTP 404 NOT FOUND for url

一开始使用pip install tensorflow或者conda install tensorflow时出现着这种情况的,测试了很久才发现时镜像的问题。


CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.continuum.io/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.
ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='repo.continuum.io', port=443): Max retries exceeded with url: /pkgs/main/win-64/repodata.json.bz2 (Caused by ConnectTimeoutError(, 'Connection to repo.continuum.io timed out. (connect timeout=9.15)'))",),)

在C盘里面找到.condarc文件,这个文件在C盘的的用户目录下,找到以后打开,然后替换掉channels:里面的内容,这个镜像是清华的镜像

channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
show_channel_urls: true

你可能感兴趣的:(Python,Python,Anaconda,HTTP,000)