Ubuntu上的新鲜PythonA202105出现不满意错误

2024-10-02 20:37:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经下载并安装了Anaconda3-2021.05-Linux-x86_64.sh在Ubuntu 20.04的干净安装上(以前没有修改或安装任何东西)

然后我运行conda update conda,然后(最终,经过长时间的等待)我得到一个看似不可能的UnsatisfiableError,如下所示:

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - anaconda==2021.05 -> python[version='3.7.10|3.9.4|3.8.8',build='hdb3f193_5|hdb3f193_0']
  - conda-verify -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.5,<3.6.0a0']
  - conda[version='>=4.10.1'] -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0']

Your python: python=3.8

看起来康达和开箱即用的Python是不相容的?据我所见,没有一个Python版本可以同时满足这些约束。即使有,我也无法安装它,因为我一键入conda install [anything],它就会在抛出错误消息之前解决环境问题很多年。我很惊讶,我在网上找不到更多关于这个的点击率,因为我使用的是最新版本的anaconda的基本环境,并且安装了一个干净的Ubuntu

作为参考,如果我尝试安装anaconda的旧版本(Anaconda3-2018.12-Linux-x86_64.sh),一切正常


Tags: the版本环境versionubuntulinuxshupdate