Anaconda-UnsatisfiableError:发现以下规格存在冲突 [英] Anaconda - UnsatisfiableError: The following specifications were found to be in conflict
问题描述
当我尝试通过anaconda环境安装模块'pymc'时,它显示如下错误消息:
When I was trying to install a module 'pymc' through anaconda environments, it showed the error message as follows:
UnsatisfiableError:发现以下规格 冲突:
UnsatisfiableError: The following specifications were found to be in conflict:
-
大火-> pyyaml-> python [version ='> = 2.7,< 2.8.0a0']-> vc = 9
blaze -> pyyaml -> python[version='>=2.7,<2.8.0a0'] -> vc=9
大火-> pyyaml-> yaml-> * [track_features = vc9]
blaze -> pyyaml -> yaml -> *[track_features=vc9]
pymc使用"conda信息"查看每个程序包的依赖性.
pymc Use "conda info " to see the dependencies for each package.
我正在使用Python 2.7.14,并且在Windows上安装了anaconda 1.6.9.我是Python的新手.我首先尝试使用cmd安装pymc模块,但遇到了很多问题,例如在Windows上安装g77编译器的要求.从MinGW获得编译器并安装了适用于Python的Microsoft Visual C ++编译器后,由于出现新错误,我仍然无法安装该模块.那就是我发现在anaconda环境中列出了可以手动添加的pymc模块时,它显示了此冲突错误.
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.
我不知道冲突是否来自于我上面安装的所有其他东西.请帮忙!谢谢!
I do not know whether the conflict comes from all those other stuff I installed above or not. Please HELP! Thanks!
推荐答案
为Python 2.7创建新的conda环境:
Create a new conda environment for Python 2.7:
conda create -n my_pymc_env python=2.7
激活它:
conda activate my_pymc_env
或者,对于Windows上的较旧的conda版本:
Alternatively, for older conda versions on Windows:
activate my_pymc_env
在Unix(包括Mac OS X)上:
on Unix (including Mac OS X):
source activate my_pymc_env
激活后,安装软件包:
conda install pymc blaze
如果仍然收到此消息,请安装Anaconda客户端:
If you still get this message, install the Anaconda client:
conda install anaconda-client
并搜索您的包裹:
anaconda search mypackage
寻找具有适合您的版本的频道并安装:
Look for a channel that has the right version for you and install:
conda install -c channel_with_right_version mypackage
这篇关于Anaconda-UnsatisfiableError:发现以下规格存在冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!