Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

easy_install PIL fails

I am trying to setup a dev environment on a new laptop, I am trying sudo easy_install PIL after seting up setuptools and python etc, I get this error. Setup script exited with error: command 'gcc' failed with exit status 1

I have gcc and build_essentials installed, on Ubuntu Karmic. Full traceback is at http://dpaste.de/fHiW/

like image 834
agiliq Avatar asked Nov 29 '09 09:11

agiliq


Video Answer


1 Answers

You must install the python-dev package which includes the CPython header files needed to compile C extensions.

like image 136
Pierre Bourdon Avatar answered Oct 23 '22 04:10

Pierre Bourdon