【发布时间】:2014-05-06 08:52:55
【问题描述】:
我尝试通过http://ipython.org/ipython-doc/dev/install/install.html 安装pyzmq,因为我想安装ipython。但它依赖于依赖于 gcc 的 pyzmq。我已经安装了 gcc,但在安装 pyzmq 时仍然出现以下错误。
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
该脚本还包含以下内容:
If you expected pyzmq to link against an installed libzmq, please check to make sure:
* You have a C compiler installed
* A development version of Python is installed (including headers)
* A development version of ZMQ >= 2.1.4 is installed (including headers)
* If ZMQ is not in a default location, supply the argument --zmq=<path>
* If you did recently install ZMQ to a default location,
try rebuilding the ld cache with `sudo ldconfig`
or specify zmq's location with `--zmq=/usr/local`
You can skip all this detection/waiting nonsense if you know
you want pyzmq to bundle libzmq as an extension by passing:
`--zmq=bundled`
I will now try to build libzmq as a Python extension
我已经拥有以上所有但仍然存在问题。我猜我有路径问题,即可能是 pyzmq 正在查看其他位置,但我该如何解决这个问题
【问题讨论】:
-
你使用的是什么操作系统?
-
Windows 8.1 和使用 cygwin
-
哦。我花了大约 2.5 年的时间在 Windows 中进行 Python 编程,但从来没有足够的勇气使用 cygwin。 pyzmq 有时在“普通”Windows 中具有挑战性,但总是可以修复。在 Linux 上它工作起来要简单得多,但 cygwin 不是我的一杯茶。
-
是的,我可能应该转向 Linux,但我想解决这个问题。你知道要改变什么路径吗,因为我认为 pyzmq 会去错误的位置来检查 gcc
-
对不起,我这边对cygwin没有兴趣和能力:-(
标签: python gcc ipython ipython-notebook pyzmq