• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

luffylee

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

ubuntu下安装twisted

首先从 http://twistedmatrix.com/trac/ 下载源码,解压后,python setup.py install

出现以下错误 twisted/runner/portmap.c:10:20: error:Python.h:No such file or directory

 

在stackoverflow上搜到答案 http://stackoverflow.com/questions/8629198/twisted-installation-failed-on-linux

The compiler can't find python development headers.

Asking the system administrator to install python-devel in case of CentOS or to install python-dev on Debian, Ubuntu and their derivatives. That should help.

 

所以最后的方法就是

  sudo apt-get install python-dev

  sudo setup.py install

posted on 2012-03-16 08:41  luffylee  阅读(509)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3