当我 easy_install greenlet 时,我收到“错误:安装脚本退出并出现错误:命令“gcc”;失败,退出状态为 1”
当我按照 ubuntu 10.04 中的文档所述 easy_install greenlet(也是 eventlet)时,我收到了上面的错误。 有谁知道为什么吗? 期待您的帮助!
我已经安装了 build-essential
由于我无法在此处采用格式,因此我将打印出来的消息粘贴到那里 http://sugelawa.appspot.com/?p=35001
非常感谢你!
when i easy_install greenlet(also eventlet) as the documents says in ubuntu 10.04 i got the error above.
is there anyone know why?
Expect your help!
And I have install build-essential
As I canot take the format right here, so I paste the message printed out there http://sugelawa.appspot.com/?p=35001
Thank u very much!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
(警告:Ubuntu 特定答案。有点适用于 Debian,但我现在脑子里没有详细信息)使用
easy_install
安装包含 C 的模块扩展(例如greenlet
),您需要在系统上安装完整的开发堆栈。对于基本安装,对于 C 部分意味着build-essential
,对于 Python 部分意味着python-all-dev
(这就是Python.h
的位置) > 生命)。为了清楚起见,在问题中添加“ubuntu”标签(目前我自己还没有足够的声誉)
(Warning: Ubuntu specific answer. Somewhat applicable to Debian, to but I don't have the details in my head right now) To use
easy_install
to install modules that contain C extensions (likegreenlet
), you need a complete development stack installed on your system. For a basic install, the meansbuild-essential
for the C part andpython-all-dev
for the Python part (that's wherePython.h
lives).Add an 'ubuntu' tag to the question for clarity (don't have sufficient reputation myself as of now)