I cannot get Numpy or Scipy to work with Python3 on MAC OSX Lion.
I have successfully used pip to install numpy, scipy and matplotlib, and they work well with Python2.7, but in Python3, import numpy input calls No module named numpy . I tried to download the source code directly and then run "python3 setup.py build", but I get various error warnings, some in red, that are related to fortran (for example, "Could not find the executable file f95"). At the end of the error message, which seems to fail, is “RuntimeError: Broken toolchain: unable to link a simple C program” and seems to be related to the previous line “sh: gcc-4.2: command not found”.
The Scipy website suggests that there may be problems with the c compiler, but the same problems did not occur when using pip to install for python2 +0.7. I followed the instructions on the website regarding changing the compiler, but that didn't make any difference.
I also tried installing from a virtual environment:
mkvirtualenv -p python3.2 test1 pip install numpy
But this fails with Command python setup.py egg_info failed with error code 1 in /Users/Eddy/.virtualenvs/test1/build/numpy
I was considering creating python3 by default, and then I thought installing the package might work, but I don't know how to do it. Does anyone have any suggestions on how I can proceed? Thanks.
source share