easy_install PIL失败

时间:2009-11-29 09:18:25

标签: ubuntu installation apt-get

我正在尝试在新笔记本电脑上设置开发环境,我在设置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/

1 个答案:

答案 0 :(得分:28)

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