conda install python=3.6 UnsatisfiableError
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/42075581/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
conda install python=3.6 UnsatisfiableError
提问by Tom Hunter
I currently have Python 3.5.2 installed via Anaconda Continuum. I'm trying to upgrade to Python 3.6 but I'm getting the below error when I try to run conda install python=3.6
:
我目前通过 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.
What might be causing this?
这可能是什么原因造成的?
采纳答案by Jimmy C
You have enum34 installed, which requires 2.6-3.5. Installing Python 3.6 is thus not possible without either updating enum34 to see if newer versions support 3.6, removing enum34, or installing Python 3.6 in a new environment.
您已安装 enum34,这需要 2.6-3.5。因此,如果不更新 enum34 以查看较新版本是否支持 3.6、删除 enum34 或在新环境中安装 Python 3.6,则无法安装 Python 3.6。
回答by Shital Shah
I had the same error but a bit different:
我有同样的错误,但有点不同:
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.
You can try removing offending packages like this:
您可以尝试删除有问题的软件包,如下所示:
conda remove argcomplete conda-manager
Sometimes this will keep showing new offending packages. In that case, I would just remove Anaconda installation from the path, delete folder and re-install.
有时这会不断显示新的违规软件包。在这种情况下,我只需从路径中删除 Anaconda 安装,删除文件夹并重新安装。
However, ultimately I just found that Python 3.6 is not worth the trouble yet due to incompatibility with TensorFlow, OpenCV, VS2015 etc. So I ended up making Python 3.5 as default by doing this in Anaconda:
但是,最终我发现 Python 3.6 由于与 TensorFlow、OpenCV、VS2015 等不兼容,因此不值得麻烦。所以我最终通过在 Anaconda 中执行此操作将 Python 3.5 设为默认值:
conda install python=3.5
This command will overwrite your Python version in conda with 3.5. Doing this fixed most of the errors I was facing.
此命令将使用 3.5 覆盖 conda 中的 Python 版本。这样做修复了我面临的大部分错误。
回答by RAJIT NAIR
if anybody founds difficulty in upgradation of python like conda install python=3.6 UnsatisfiableError due to some other library like env, lasagne etc.In that case just remove that library using the command conda remove library name and again do the installation by using command conda update python
如果有人发现 python 升级有困难,比如 conda install python=3.6 UnsatisfiableError 由于其他库,如 env、lasagne 等。在这种情况下,只需使用命令 conda remove library name 删除该库,然后再次使用命令 conda update 进行安装Python