conda 无法自行更新

conda can't update itself

我在装有 rhel7 的 linux 机器上,当我尝试安装一些软件包时,收到以下消息。

Solving environment: failed

CondaValueError: Malformed version string '~': invalid character(s).

Google搜索建议更新conda(我的conda版本是4.5.11)。于是尝试更新conda,canda虽然没有报错但还是更新失败,如下图

$ conda update -n base conda
Solving environment: done


==> WARNING: A newer version of conda exists. <==
current version: 4.5.11
latest version: 4.8.3

Please update conda by running

$ conda update -n base conda

# All requested packages already installed.

$ conda --version
conda 4.5.11

重复命令得到相同的结果。

您的 python-3.5 版本不再被官方渠道支持,因此 conda 无法找到合适的软件包进行更新。

您可以通过 运行 明确请求更新:

conda install -n base conda=4.8.3 python=3.8