Please don't use this method any more, this is ages old (2014, Python 2.7).
Assuming you use virtualenv
for Python library hygiene. Now you want Numpy and Scipy in your project.
NumPy and SciPy can not be easily installed under Mac OS X with a simple
pip install scipy
due to heavy dependencies.
However, homebrew-python provides them as recipes. Therefore you can
- install
numpy
andscipy
fromhomebrew-python
- symlink them into a virtualenv
Try it:
brew install homebrew/python/scipy
python -m virtualenv venv-playground
ln -s /usr/local/lib/python2.7/site-packages/{numpy,scipy}* venv-playground/lib/python2.7/site-packages/
source venv-playground/bin/activate
pip freeze
You should see something like this:
numpy==1.9.0
scipy==0.14.0
wsgiref==0.1.2
Sorry, this gist is ages old and I don't recommend this method any more.