It is assumed to be built on MacOSX.
For the time being, keep the homebrew environment at hand up to date.
$ brew update
$ brew upgrade
$ brew install pyenv
Install XCode developer tools if you haven't already done so.
$ xcode-select --install
Add the following to ~ / .bash_profile
.
~/.bash_profile
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
Check the version of python that can be installed.
$ pyenv install --list
Here, install 3.4.3
.
$ pyenv install 3.4.3
Switch your Python version to 3.4.3, which you just installed.
$ pyenv global 3.4.3
$ pyenv rehash
$ pip install numpy
$ pip install scipy
$ pip install matplotlib
$ pip install scikit-learn
that's all.