conda创建环境时出错Solving environment: failed

 使用conda创建一个虚拟环境时出现问题,出错界面与博文(https://blog.csdn.net/zhicheng_angle/article/details/103702209/#commentBox)类似,

An unexpected error has occurred. Conda has prepared the above report.
If submitted, this report will be used by core maintainers to improve
future releases of conda.

恢复默认下载源再重新添加国内清华镜像后没有解决问题,并且conda崩溃无法使用,再将下载源恢复到默认,问题解决。

恢复默认下载源:

sudo gedit ~/.condarc

将文件内容改为:

channels:
  - defaults
show_channel_urls: true

或直接终端执行如下命令恢复默认源:

conda config --remove-key channels

添加清华源:https://blog.csdn.net/u013952812/article/details/107292450?spm=1001.2014.3001.5502

你可能感兴趣的:(python,python)