Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

PyStan and OS X

Allen Riddell edited this page Jun 26, 2014 · 2 revisions

This page collects solutions to common problems encountered on Mac OS X.

OS X Mavericks

Many people have reported problems installing PyStan on OS X 10.9 (Mavericks). This page collects information that may be useful in getting PyStan working on OS X.

From @betanalpha

Just in case anybody has been running into issues, there is a known conflict in
the latest version of Mavericks that has been causing all kinds of problems with
Python installs. Fortunately the workaround is pretty easy, although you won't
be able to use pip.

All you really have to do is make sure that you set

export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future

is set in the local environment when you compile and run PyStan. Be careful
with any sudo'ing that you might do, as this creates a new environment that
won't recognize any local exports.

So, for example,

git clone [email protected]:stan-dev/pystan.git
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future python setup.py install
export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
python
...proceed with Stan'ing...

Word on the street is that a new release of Mavericks with a consistent Python
install is coming soon, but this should provide a reasonable workaround for the
time being.

If you run into any other issues let us know.
Clone this wiki locally