康达安装 python=3.6 UnsatisfiableError

conda install python=3.6 UnsatisfiableError

我目前通过 Anaconda Continuum 安装了 Python 3.5.2。我正在尝试升级到 Python 3.6,但是当我尝试 运行 conda install python=3.6:

时出现以下错误
UnsatisfiableError:
The following specifications were found to be in conflict:
- enum34 -> python 2.6*|2.7*|3.3*|3.5*
- python ==3.6.0
Use "conda info " to see the dependencies for each package.

可能是什么原因造成的?

您安装了 enum34,需要 2.6-3.5。因此,如果不更新 enum34 以查看新版本是否支持 3.6、删除 enum34 或在新环境中安装 Python 3.6,则无法安装 Python 3.6。

我有同样的错误,但有点不同:

UnsatisfiableError: The following specifications were found to be in conflict:
  - argcomplete -> python 3.5*
  - python ==3.6
Use "conda info <package>" to see the dependencies for each package.

您可以像这样尝试删除有问题的软件包:

conda remove argcomplete conda-manager

有时这会不断显示新的有问题的包。在那种情况下,我会从路径中删除 Anaconda 安装,删除文件夹并重新安装。

但是,最终我发现 Python 3.6 由于与 TensorFlow、OpenCV、VS2015 等不兼容,所以还不值得麻烦。所以我最终将 Python 3.5 作为默认设置这在 Anaconda 中:

conda install python=3.5

此命令将用 3.5 覆盖您在 conda 中的 Python 版本。这样做修复了我面临的大部分错误。

如果有人发现升级 python 有困难,例如 conda install python=3.6 UnsatisfiableError 由于其他一些库,如 env、lasagne etc.In,这种情况只需使用删除该库命令 conda remove library name 并再次使用命令进行安装 康达更新 python