easy_install twisted
Searching for twisted
Reading
http://pypi.python.org/simple/twisted/Best match: Twisted 14.0.2
Downloading
https://pypi.python.org/packages/source/T/Twisted/Twisted-14.0.2.tar.bz2#md5=8379eb15601d6b7543a189594d3fed8fProcessing Twisted-14.0.2.tar.bz2
Running Twisted-14.0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-U2BWEm/Twisted-14.0.2/egg-dist-tmp-Kf7DWe
twisted/runner/portmap.c:10:20: 错误:Python.h:没有那个文件或目录
twisted/runner/portmap.c:14: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
twisted/runner/portmap.c:31: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
twisted/runner/portmap.c:45: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PortmapMethods’
twisted/runner/portmap.c: 在函数‘initportmap’中:
twisted/runner/portmap.c:55: 警告:隐式声明函数‘Py_InitModule’
twisted/runner/portmap.c:55: 错误:‘PortmapMethods’未声明(在此函数内第一次使用)
twisted/runner/portmap.c:55: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
twisted/runner/portmap.c:55: 错误:所在的函数内也只报告一次。)
error: Setup script exited with error: command 'gcc' failed with exit status 1
系统是CentOS release 6.5
是不是先要安装python源码?