SciPy, a scientific calculation module for Python, Install the graphing module matplotlib. Use Homebrew.
If python is not included, first
brew install python
continue
brew install gfortran
pip install numpy
pip install scipy
pip install matplotlib
It seems that gfortran and numpy are required to install scipy. I get a lot of warnings, but ignore them
If you put python in brew, the location of pip is /usr/local/lib/python2.7/site-packages/ So, put it through PYTHONPATH. For Eclipse, go to Preferences PyDev → Interpreter --Python → new If you select /usr/local/Cellar/python/2.7.4/bin/python from browse, A list of places to pass PYTHONPATH will be displayed, so check all of them All you have to do is OK.
(Addition) It seems that easy_install has been abolished and pip has become standard equipment since the latest version (2.7.4). If you have an older version of python, please update.
Recommended Posts