Question

When I try to install numpy over a python.org python2.6 installation, I get these errors on my OS X terminal.

sh: gcc-4.2: command not found

And this causes failure. I noticed a pastebin (http://pastebin.com/hieSKe3A) already on this issue but I'm unable to find an answer online that works for Snow Leopard (there seem to be a lot of answers for Lion).

I noticed numpy requires the python.org python2.6 installation. I'm trying to do that. Btw, if there is a way for me to prevent the installer of the numpy mpkg from checking the python version available? (If yes, I may have another hacky way to do this.)

Help?

Thanks.

No correct solution

OTHER TIPS

You have two main options to install gcc 4.2 on Snow Leopard:

  1. Download pre-built binaries from osx-gcc-installer. This is the simplest way.

  2. Download the Command Line Tools for Xcode package in the Developer Center and follow this guide to make it install on Snow Leopard.

In terminal type “gcc“, you will get message “command not found”.

C or GCC compiler is needed some times and MAC OS X does not have this installed by default

to install gcc compiler you will need to download and install command line tools for xcode (see Apples developer page)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top