(2017.01.09 OSX El Capitan)
Homebrew
If Homebrew is not installed Install Homebrew according to http://brew.sh/index_ja.html
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Python3
Install Python3 with Homebrew
brew install python3
numpy, scipy, pandas, sklearn
Install numpy, scipy, pandas, sklearn with pip
pip3 install numpy scipy pandas sklearn
matplotlib
Refer to http://qiita.com/ciela/items/32703d8dc6dd2297cc99, Install pkg-config, freetype with Homebrew, then install matplotlib with pip
brew install pkg-config freetype
pip3 install matplotlib
Sample code
Download Sample Code
Jyupyter
Install Jupyter with pip by referring to http://jupyter.org/install.html
pip3 install jupyter
Jupyter extension
Install Jupyter extension package with pip
pip3 install watermark
To start Jupyter, enter the following in the terminal
jupyter notebook
Go to the downloaded Sample Code folder and go to Open a file such as code / ch02 / ch02.ipynb and click the Kernel tab in the menu at the top of the page. Click Restart & Run All