ubuntu创建conda虚拟环境时报错如下:
Fetching package metadata ...
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghu
a.edu.cn/anaconda/cloud/msys2/linux-64/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(SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_ser
ver_certificate', 'certificate verify failed')],)",),),)
ubuntu18.04中利用conda创建虚拟环境,出现上图的错误,用vim ~/.condarc查看镜像源,里面有些重复选项,删除重复选项,增加ssl_verify: false,具体如下:
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
show_channel_urls: true
ssl_verify: false
然后输入 conda create -n envs python=3.6,成功
标签:cn,mirrors,anaconda,虚拟环境,conda,tsinghua,https,edu,ubuntu From: https://www.cnblogs.com/chentiao/p/17347929.html