1.在Anaconda Prompt安装所需要的的包时,出现这种错误:
我们会发现,我们也使用了清华的镜像了,还是失败,重复失败。怎么办?
conda install absl-py
Solving environment: failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch/repodata.json>
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.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'mirrors.tuna.tsinghua.edu.cn\', port=443): Max retries exceeded with url: /anaconda/pkgs/free/noarch/repodata.json (Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'ssl3_get_server_certificate\', \'certificate verify failed\')],)",),))',),)
2. 向上面的重复失败的问题,来一个终极的解决方案,直接给方法:
2.1首先我们在C盘搜索自己的.condarc文件,如图:
2.2 打开此文件,修改成下面的内容:
ssl_verify: true
show_channel_urls: true
channels:
? - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/
? - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/
?如图:
最后重新返回?Anaconda Prompt进行下载,会发现下载很快!!
OK!
|