我正在尝试在新笔记本电脑上设置开发环境,我在设置setuptools和python等后尝试sudo easy_install PIL
,我收到此错误。 Setup script exited with error: command 'gcc' failed with exit status 1
我在Ubuntu Karmic上安装了gcc和build_essentials。完整追溯是http://dpaste.de/fHiW/
答案 0 :(得分:28)
您必须安装python-dev
包,其中包含编译C扩展所需的CPython头文件。