Bootstrap

Conda安装时报错“An unexpected error has occurred. Conda has prepared the above report.”

小技巧

第一章 Linux中安装Radian


Conda安装时报错“An unexpected error has occurred. Conda has prepared the above report.”


前言

Conda安装Radian时报错“An unexpected error has occurred. Conda has prepared the above report.”怎么解决呢?


提示:以下是本篇文章正文内容,下面案例可供参考

一、Conda安装Radian时报错

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

二、解决方法

如果有重装过anaconda,在根目录下,会有一个名叫.condarc的文件会自动生成。当使用conda install和conda create命令会出现下面的问题:Collecting package metadata (current_repodata.json): failed

#输入
conda config --show-sources

会出现如下图,运行结果显示.condarc文件在~/.condarc文件夹内
在这里插入图片描述

#将该文件删掉
rm -rf ~/.condarc
#再次安装Radian
conda install -c conda-forge radian

就可以看到如下图安装成功的画面啦!
在这里插入图片描述


参考来源:https://www.jianshu.com/p/9e76e679d2f8

;