2009-11-29 41 views
13

我想在新笔记本电脑上设置开发环境,我在尝试sudo easy_install PIL设置了setuptools和python之后,我收到了这个错误。 Setup script exited with error: command 'gcc' failed with exit status 1easy_install PIL失败

我在Ubuntu Karmic上安装了gcc和build_essentials。完整回溯是:http://dpaste.de/fHiW/

回答

28

您必须安装python-dev包,其中包含编译C扩展所需的CPython头文件。

相关问题