Below is a brief outline of steps I used to install Python3 version 3.4.1 and scikit-learn version 0.15.1.
Note >> is used to indicate commands to type into terminal command line, and >>> is used to indicate commands typed into Python3 (or more accurately the Python3 interpreter).
- Install Python3:
- Go to https://www.python.org/download/
- Select Python 3.4.1 Mac OS X 64-bit/32-bit x86-64/i386 Installer (for Mac OS X 10.6 and later )
- Run Python.mpkg
- Python3 should install at /usr/local/bin/.
- Also, pip3 should install at /usr/local/.
- Install numpy:
- >>pip3 install numpy3
- Verify numpy installed
- >>>help(‘numpy’) then q to escape
- If you see the help for numpy, it’s installed.
- Install scipy
- Same steps as for numpy, but replace numpy with scipy.
- Install matplotlib
- I think this step is optional. However, >>>help(‘sklearn’) gives a description that mentions matplotlib.
- Same steps as for numpy, but replace numpy with matplotlib.
- Install scikit-learn
- Same steps as for numpy, but replace numpy with scikit-learn.
- The scikit-learn module is sklearn. Thus, use >>>help(‘sklearn’) to verify scikit-learn is installed.