anaconda3创建虚拟环境时出现问题:Collecting package metadata (repodata.json): failed
1)查看源:conda config --show-sources,进行查看.condarc,并修改。具体如下:
(base) C:\WINDOWS\system32>conda config --show-sources
==> C:\Users\****\.condarc <==
ssl_verify: true
channels:
- https://api.anaconda.org
- defaults
(2)进入C:\Users****.condarc,进行修改成如下内容
ssl_verify: True
channels:
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64
show_channel_urls: True
3、创建虚拟环境
# 创建虚拟环境,这里指定了python的版本号
conda create -n tsp python=3.8
转载https://blog.csdn.net/chenhepg/article/details/113974497?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-4.no_search_link&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-4.no_search_link