【问题标题】:pyzmq installation error with dependency on gcc依赖gcc的pyzmq安装错误
【发布时间】: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


【解决方案1】:

这是在 Windows 中安装 ipython 的一个大问题。我建议 Windows 用户永远不要使用 pip 或 easy_install 方式来安装它。我遇到了很多类似上面的问题。我读到它在 github 上仍然存在依赖问题,即通过 pip。

我终于通过这个安装了它:

Download and install Anaconda

Update IPython to the current version by:
Go to Anaconda directory or look for anaconda cmd & do the following:

conda update conda
conda update ipython

【讨论】:

    猜你喜欢
    • 2016-04-22
    • 2015-10-14
    • 1970-01-01
    • 1970-01-01
    • 2021-05-09
    • 1970-01-01
    • 2017-12-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多