conda 清华源连接HTTP失败的解决方案
清华源上下载了conda的安装脚本
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
指行脚本后,,安装在了普通用户的目录下
使用默认源访问没有任何问题
按照
https://mirror.tuna.tsinghua.edu.cn/help/anaconda/
说明替换为清华源后,只能使用root用户进行访问,普通用户访问报错
Solving environment: done
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/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/cloud/conda-forge/noarch/repodata.json (Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'ssl3_get_server_certificate\', \'certificate verify failed\')])")))'))
通过各种搜索,记录下解决方案
解决方案:
在命令行中输入conda config --set ssl_verify false修改设置,或者在文件~/.condarc末尾添加一行ssl_verify: false(有则修改即可)
将https改成http