问题描述
当我尝试通过 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[版本='>=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 info"查看每个包的依赖关系.
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 获得编译器并安装了 Microsoft Visual C++ Compiler for Python 后,我仍然无法安装该模块,因为出现了新的错误.那是当我发现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
激活后,安装您的软件包:
Once activated, install your packages:
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:发现以下规范存在冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!