Search code examples
pythonnumpyanacondapymc

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


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

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?


Solution

  • 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.