安装python的twisted出错_python2.7 安装 twisted 出错

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=8379eb15601d6b7543a189594d3fed8f

Processing 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源码?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值