Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
528 views
in Technique[技术] by (71.8m points)

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

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

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.

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!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Create a new conda environment for Python 2.7:

conda create -n my_pymc_env python=2.7

Activate it:

conda activate my_pymc_env

Alternatively, for older conda versions on Windows:

activate my_pymc_env

on Unix (including 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:

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...