Trying to install pymc on Anaconda(python) in Windows 7 and getting weird error?

允我心安 提交于 2019-12-02 07:58:34

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 compiles just fine.

Following on from Leon's answer, in my case it seems the problem was that my default Fortran compiler was mingw32 when gnu.py was expecting msvc. For PyMC's purposes mingw32 works fine, so if you'd prefer to weaken the conditional rather than eliminate it entirely, replace

        if c_compiler and c_compiler.compiler_type == "msvc":
            return []
        else:
            raise NotImplementedError("Only MS compiler supported with gfortran on win64")

in gnu.py with

        if c_compiler and c_compiler.compiler_type in ["msvc", "mingw32"]:
            return []
        else:
            raise NotImplementedError("Only MS compiler supported with gfortran on win64")
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!