問題描述
當(dāng)我嘗試通過 anaconda 環(huán)境安裝模塊pymc"時,它顯示錯誤消息如下:
When I was trying to install a module 'pymc' through anaconda environments, it showed the error message as follows:
UnsatisfiableError:發(fā)現(xiàn)以下規(guī)格在沖突:
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"查看每個包的依賴關(guān)系.
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 后,我仍然無法安裝該模塊,因為出現(xiàn)了新的錯誤.那是當(dāng)我發(fā)現(xiàn)anaconda環(huán)境中列出了可以手動添加的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 創(chuàng)建一個新的 conda 環(huán)境:
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
這篇關(guān)于Anaconda - UnsatisfiableError:發(fā)現(xiàn)以下規(guī)范存在沖突的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!