installing NUMPY for Mac OSX 10.7. (Lion) for use with Python

Posted by user1744871 on Stack Overflow See other posts from Stack Overflow or by user1744871
Published on 2012-10-27T22:25:54Z Indexed on 2012/10/27 23:00 UTC
Read the original article Hit count: 224

Filed under:
|

I Need to use nltk and numpy with Python. I am a newbie to Python and initially used the python 2.7.3 that came with my mac (currently running OSX 10.7.5). I learned that the apple version of python may not be robust so I downloaded the standard version from python.org.

I have downloaded the nltk program for Mac OSX 10.7. This seemed to install fine. I am trying to download and install numpy using the instructions from the scipy website. http://www.scipy.org/Installing_SciPy/Mac_OS_X.

I cloned numpy from github but when I tried to build it using the following command

$ python setup.py build I received the following error

MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory

I also tried to build it using the scons command $ python setupscons.py scons --jobs=2

and received the following error /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setupscons.py': [Errno 2] No such file or directory

Can anyone think of a possible workaround?

© Stack Overflow or respective owner

Related posts about python

Related posts about nltk