Apple ships its own version of Python with OS X. However, it is recommended to install the official Python distribution.
My Macbook Pro has already got Apple Developer Tools installed, but I still need to install gfortran and Cython compiler.
To install gfortran, I tried using Homebrew (brew install gcc) but with error results because of version problem. So I installed it according to instructions here.
Thereafter I cloned NumPy and SciPy from their corresponding GitHub repo and installed following:
python setup.py build
python setup.py install
After these steps, I can import numpy and scipy module but can not run test cases. The error reported is
"ImportError: Need nose >= 0.10.0 for tests - see http://somethingaboutorange.com/mrl/projects/nose"
I tried install nose via pip, but fails (still can not import nose module afterwards, probably because I have 2 versions of Python installed). Later I tried install using easy_install, it finally succeeded.
No comments:
Post a Comment