compile errors with xcode versions

Installing numpy fails due to an xcode compiler flag mismatch error, well documented on stackoverflow. Here’s how I installed scikit

 

mkdir SGML

cd SGML

virtualenv venv

source venv/bin/activate

($venv) sudo ARCHFLAGS=-Wnoerror=unusedcommandlineargumentharderrorinfuture pip install upgrade numpy

numpy is required for scikit

($venv) sudo ARCHFLAGS=-Wnoerror=unusedcommandlineargumentharderrorinfuture pip install upgrade scikit-learn

the actual package is called scikit-learn

($venv) sudo ARCHFLAGS=-Wnoerror=unusedcommandlineargumentharderrorinfuture pip install upgrade pandas

install pandas for good measure

ipython (which requires a bunch of dependencies)

Finally, scipy — which will require fortran compiler for which you need to ‘brew install gfortran’


 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s