user3413343
user3413343

Reputation: 1

PYMC installation --fcompiler not recognized

I'm trying to install pymc on OSX Mountain lion.

I have installed gfortran (from http://gcc.gnu.org/wiki/GFortranBinaries#MacOS) and cloned pymc.

I tried what has previously been working: 'setup.py config --fcompiler=gfortran build', but this gives an error:

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

or: setup.py --help [cmd1 cmd2 ...]

or: setup.py --help-commands

or: setup.py cmd --help

error: option --fcompiler not recognized

If I just do: 'sudo python setup.py install' then I get this

.

.

.

clang: warning: argument unused during compilation: '-mno-fused-madd'

In file included from src/ft2font.cpp:3:

In file included from src/ft2font.h:16:

/usr/X11/include/ft2build.h:56:10: fatal error: 'freetype/config/ftheader.h' file not found

include ^ 1 error generated. error: Setup script exited with error: command 'clang' failed with exit status 1

Any ideas what's going on?

Thanks,

Jen

Upvotes: 0

Views: 1019

Answers (1)

Chris Fonnesbeck
Chris Fonnesbeck

Reputation: 4203

Which version of PyMC are you trying to install, the current development version on GitHub master (PyMC 3) or the release version (PyMC 2.3)?

If you are trying to install PyMC 3, you do not need a Fortran compiler. You do need Theano, however. Can you try the following?

pip install --no-deps git+git://github.com/Theano/Theano.git
pip install --no-deps git+git://github.com/pymc-devs/pymc.git

Upvotes: 1

Related Questions