试图在Windows 7中的Anaconda(python)上安装pymc并得到奇怪的错误? [英] Trying to install pymc on Anaconda(python) in Windows 7 and getting weird error?
本文介绍了试图在Windows 7中的Anaconda(python)上安装pymc并得到奇怪的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用Markov Chain Monte Carlo运行一些数据科学算法以进行贝叶斯分析,并尝试安装PyMC,但令人沮丧地得到此错误...
I want to run some data science algorithms using Markov Chain Monte Carlo for Bayesian analysis and am trying to install PyMC but am frustratingly getting this error...
File "C:\Anaconda\lib\site-packages\numpy\distutils\fcompiler\gnu.py", line 333, in get_libraries
raise NotImplementedError("Only MS compiler supported with gfortran on win64")
NotImplementedError: Only MS compiler supported with gfortran on win64
为什么会发生这种情况,我该怎么办才能解决,这不需要我破解python和显然是numpy的东西,而这以后可能会搞砸其他事情?
Why would this happen and what can I do to solve it that doesnt require me hacking up python and apparently numpy that might screw other things up at a later time?
推荐答案
事实证明,如果我只是转到有问题的行……
It turns out if I just go to the line in question ...
"C:\Anaconda\lib\site-packages\numpy\distutils\fcompiler\gnu.py"
并注释掉该语句,使其看起来像这样-
and comment out the statement so it looks like this -
else:
pass #raise NotImplementedError("Only MS compiler supported with gfortran on win64")
PyMC编译正常.
这篇关于试图在Windows 7中的Anaconda(python)上安装pymc并得到奇怪的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文