Installing Python Data Science Stack on Yosemite24 Jan 2015
I was attempting to install the Python data-science stack within a fresh virtual environment on my Mac with OS X 10.10.1 (Yosemite) but encountered various frustrating errors. I logged my steps below that eventually yielded a successful installation.
My primary goal was actually to install version 0.15.2 of
pip install -U scikit-learn, but
I encountered some errors during the
scipy installation. The process
numpy 1.9.1 but failed on
scipy 0.15.1. I then tried to
install that version of
scipy individually but received the following error.
After a few Google searches and a bit of trial and error, I followed instructions in this StackOverflow post to attempt a fix. As mentioned below, I still received an error. Here were my initial steps:
Download and install XCode Command Line Tools from Apple
scipystill failed at this point
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
pip install -U scipystill failed with same error message.
A few hints from a random README file suggested that I do the following:
Well, a new error message at this point.
At this point, I was quite frustrated. I closed my terminal
iTerm2 and reopened it. Forgoing the
options, I set:
This time I was able to install both