0

When I launch command line:

$ pip install -r requirements.txt 

The following error shows:

command 'gcc-4.0' failed with exit status 1

Why? Thanks!

Anne
  • 26,765
  • 9
  • 65
  • 71
magino85
  • 1
  • 1

3 Answers3

0

I had this same problem. The issue was that pip was looking for gcc in the /Developer folder, which does not exist on my system. I ended up creating the folder that pip was looking for (/Developer/usr/bin) and adding a symbolic link to /usr/bin/gcc in this new folder. The command to do this is ln -s /usr/bin/gcc gcc. In your case, you can replace gcc with gcc-4.0. I hope this helps.

You can find some more information here: gcc-4.2 error when using pip in virtualenv on OSX 10.7.

Community
  • 1
  • 1
borticus
  • 156
  • 5
0

If not already done, installing gcc >= 4.0 on your system might help.

Oleiade
  • 6,156
  • 4
  • 30
  • 42
0

Are you trying to install the requirements manually? That automatically happens when you deploy to Heroku, as long as you have a requirements.txt file in the root of the repo.

mipadi
  • 398,885
  • 90
  • 523
  • 479
  • of course but when I launch command: pip install -r requirements.txt install django and psycopg2 but at end of file the error that comes up is: unable to execute gcc-4.0: No such file or directory. I go on however? – magino85 Nov 11 '11 at 11:03
  • @magino85: Are you installing locally (i.e., on your own development machine)? If so, then you'll have to install gcc. – mipadi Nov 11 '11 at 15:22
  • Yes locally...But how do you install? – magino85 Nov 14 '11 at 10:38
  • @magino85: What OS are you using? – mipadi Nov 14 '11 at 15:35