Bootstrap

conda创建环境报错:An unexpected error has occurred. Conda has prepared the above report.

当我们使用conda create --n 环境名称 python =3.9时可能会报错,出现An unexpected error has occurred. Conda has prepared the above report.这个错误。

通过在网上查找相关的资料,可以通过此方法解决。

1,输入以下代码,查看是否存在.condarc文件。

conda config --show-sources

看是否会出现下面的信息:

如果包含此信息。说明存在.condarc文件。

我们需要通过下面的代码将其删掉。

rm -rf ~/.condarc

当我们再次输入

conda config --show-sources

就会发现不包含 .condarc文件,

然后我们就可以成功创建虚拟环境了

;