为 python 安装 zeormq 时遇到问题

发布于 2024-10-10 04:26:35 字数 811 浏览 0 评论 0原文

我是 unix 的初学者,所以如果我发布一些简单的内容,我很抱歉。我也必须承认我并没有掌握所有的过程。

我需要在我的 ubuntu 上安装 Zeromq。

我安装了 python 2.6.6

我按照 UNIX 系统网站上的说明进行操作: http:// /www.zeromq.org/intro:get-the-softwarehttp://www 之后.zeromq.org/bindings:python

正是我所做的:

  • 安装 libtool、autoconf、automake 和 uuid-dev
  • 下载稳定版本
  • sudo ./configure 、 sudo make、sudo make install 和 sudo ldconfig

(此时我没有收到任何错误)

但是当我输入: sudo简单安装 pyzmq 我收到错误:

zmq/core/constants.c:4:致命错误: Python.h:没有这样的文件或目录 编译终止。 错误:命令 “gcc”失败,退出状态为 1

如果我尝试手动安装,我会收到相同的错误。

我现在不知道该怎么办,也找不到遇到同样问题的人。

我预先感谢您的帮助。

I'm a beginner on unix so I'm sorry if I post something easy. Also I have to admit that I do not master all the process.

I need to install zeromq on my ubuntu.

I have python 2.6.6 installed

I followed the instructions on the website for UNIX systems : http://www.zeromq.org/intro:get-the-software and after http://www.zeromq.org/bindings:python.

Precisely I did :

  • Install libtool, autoconf, automake and uuid-dev
  • Downloading the stable release
  • sudo ./configure , sudo make, sudo make install and sudo ldconfig

(At this point I don't get any error)

But when I type : sudo easy_install pyzmq
I get the error :

zmq/core/constants.c:4: fatal error:
Python.h: No such file or directory
compilation terminated.
error: command
'gcc' failed with exit status 1

I get the same error if I try to install manually.

I don't know what to do at this point and I can't find somebody having the same problem.

I thank you in advance for your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

静谧 2024-10-17 04:26:35

您给我们的所有错误都表明 gcc 失败。很可能 gcc 还给了您一个错误消息,告诉您为什么失败。这更有帮助。

如果我猜的话,缺少某种开发标头。可能是Python开发头文件,您可以使用它来安装

sudo apt-get install python-dev

但是只有当您提供相关的错误消息(在C/C++中令人讨厌地出现在开头或错误消息中)时,才能确切地回答它出了什么问题。

All the error you gave us is saying that gcc failed. Most likely gcc also gave you a long error message telling you why it failed. That is more helpful.

If I'm going to guess, some sort of development headers is missing. Probably the Python development headers, which you can install with

sudo apt-get install python-dev

But exactly what it wrong can only be answered when you give the relevant error message (which in C/C++ annoyingly comes in the beggining or the error message).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文