Skip to content

Instantly share code, notes, and snippets.

@smijar
Last active July 21, 2017 19:34
Show Gist options
  • Save smijar/f6dd37380596fef6257aac070b12c39c to your computer and use it in GitHub Desktop.
Save smijar/f6dd37380596fef6257aac070b12c39c to your computer and use it in GitHub Desktop.
Installing python ML packages in a virtual environment on OS X
brew install numpy
brew install scipy
brew install matplotlib
---
*VirtualEnv*
$ mkvirtualenv ml
$ cd .virtualenvs/ml/
$ ln -s /usr/local/lib/python2.7/site-packages/{numpy,scipy}* lib/python2.7/site-packages/
$ workon ml
(ml) $ pip freeze | grep -i numpy
(ml) $ pip install scikit-learn
(ml) $ pip install tensorflow
(ml) $ pip freeze | grep -i numpy
(ml) $ deactivate (when done)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment