python -c "import numpy"should work
python -c "from matplotlib import pyplot"should work
import distutils.sysconfig print distutils.sysconfig.get_python_inc() import numpy numpy.get_include()both printed directories should exist.
On Fedora:
yum install gcc python-devel numpy python-matplotlib swig
On Debian and Ubuntu
apt-get install gcc python-dev python-numpy swig python-matplotlib
This is the easiest platform.
If you have some package manager installed (fink or port), see the installation instructions for Linux.
Otherwise, use the Apple provided tools. Install the developer tools from the installation disk or https://developer.apple.com/xcode/downloads/. Python, numpy and the corresponding developer headers, and of course the C compiler come with the developer package.
There are several all-inclusive packages with numpy, scipy, matplotlib etc. You can install Anaconda, which works fine.
Then install the Anaconda package.
Please use an editor that understands unix newlines (ie. not the notepad).