赞
踩
只要是运行conda的命令,如:
conda update conda
就报错,如下:
CondaValueError: You have chosen a non-default solver backend
(libmamba) but it was not recognized. Choose one of: classic
经查看官方文档,发现有一个solver的参数:
Conda 23.10.0: libmamba is now the default solver | conda.org
https://conda.org/blog/2023-11-06-conda-23-10-0-release/
conda update conda --solver=classic
运行如下命令
conda config --set solver classic
实际上给.condarc文件(一般在C:\Users\Administrator目录下)增加了最后一行:
auto_activate_base: true
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- defaults
show_channel_urls: true
solver: classic
其实还有如下命令,可以修改以上文件的相关配置,如:
conda config --set show_channel_urls yes
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels conda-forge
conda config --show
conda config --show-sources
conda本来就是解决Python运行环境各种复杂的问题,结果还是在这里掉坑里了。还好官方文档给了各种解决思路。以后问题实在解决不了,就多看看官网文档!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。