繁体   English   中英

conda install 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 等不兼容,因此不值得麻烦。所以我最终通过在 Anaconda 中执行此操作将 Python 3.5 设为默认值:

conda install python=3.5

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

如果有人发现 python 升级有困难,比如 conda install python=3.6 UnsatisfiableError 由于其他库,如 env、lasagne 等。在这种情况下,只需使用命令 conda remove library name 删除该库,然后再次使用命令 conda update 进行安装Python

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM