Python Anaconda - UnsatisfiableError:发现以下规范存在冲突

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/48589141/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 18:46:17  来源:igfitidea点击:

Anaconda - UnsatisfiableError: The following specifications were found to be in conflict

pythonanacondapymc

提问by qismees

When I was trying to install a module 'pymc' through anaconda environments, it showed the error message as follows:

当我尝试通过 anaconda 环境安装模块“pymc”时,它显示如下错误消息:

UnsatisfiableError: The following specifications were found to be in conflict:

  • blaze -> pyyaml -> python[version='>=2.7,<2.8.0a0'] -> vc=9

  • blaze -> pyyaml -> yaml -> *[track_features=vc9]

  • pymc Use "conda info " to see the dependencies for each package.

UnsatisfiableError:发现以下规范存在冲突:

  • 火焰 -> pyyaml -> python[version='>=2.7,<2.8.0a0'] -> vc=9

  • 火焰 -> pyyaml -> yaml -> *[track_features=vc9]

  • pymc 使用“conda info”查看每个包的依赖关系。

I am using Python 2.7.14, and I installed anaconda 1.6.9 on a Windows. I am new to Python. I first tried to use cmd to install the module pymc and I ran into a lot of problems such as the requirement for install g77 compiler on windows. After I got the compiler from MinGW and also installed the Microsoft Visual C++ Compiler for Python, I still cannot install the module because there came new errors. That is when I found there is pymc module listed in anaconda environment that I can add manually, but it showed this conflict error.

我使用的是 Python 2.7.14,我在 Windows 上安装了 anaconda 1.6.9。我是 Python 的新手。我首先尝试使用cmd安装模块pymc,但遇到了很多问题,例如要求在windows上安装g77编译器。在我从 MinGW 获得编译器并安装了 Microsoft Visual C++ Compiler for Python 后,我仍然无法安装该模块,因为出现了新错误。那时我发现在 anaconda 环境中列出了 pymc 模块,我可以手动添加,但它显示了这个冲突错误。

I do not know whether the conflict comes from all those other stuff I installed above or not. Please HELP! Thanks!

我不知道冲突是否来自我上面安装的所有其他东西。请帮忙!谢谢!

回答by Mike Müller

Create a new conda environment for Python 2.7:

为 Python 2.7 创建一个新的 conda 环境:

conda create -n my_pymc_env python=2.7

Activate it:

激活它:

conda activate my_pymc_env

Alternatively, for older conda versions on Windows:

或者,对于 Windows 上的旧版 conda:

activate my_pymc_env

on Unix (including Mac OS X):

在 Unix(包括 Mac OS X)上:

source activate my_pymc_env

Once activated, install your packages:

激活后,安装您的软件包:

conda install pymc blaze

If you still get this message, install the Anaconda client:

如果您仍然收到此消息,请安装 Anaconda 客户端:

conda install anaconda-client

and search for your package:

并搜索您的包裹:

anaconda search mypackage

Look for a channel that has the right version for you and install:

寻找适合您的频道并安装:

conda install -c channel_with_right_version mypackage