practical machine learning in python Using pyenv https://fijiaaron.wordpress.com/2015/06/18/using-pyenv-with-virtualenv-and-pip-cheat-sheet/
pyenv virtualenv 3.6.1 venv3 pyenv virtualenv 2.7.13 venv2
Remember to use pip3 install for all the packages in python 3 python 3.6 pip3 install sklearn, Quandl, pandas, scipy, matplotlib
matplotlib works in mac ~/.matplotlib create a file matplotlibrc add code: backend: TkAgg