pyzmq安装错误依赖于gcc

时间:2014-05-06 08:52:55

标签: python gcc ipython ipython-notebook pyzmq

我尝试按http://ipython.org/ipython-doc/dev/install/install.html安装pyzmq,因为我想安装ipython。但它依赖于pyzmq,它依赖于gcc。我已经安装了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正在寻找其他位置,但我该如何解决这个问题

1 个答案:

答案 0 :(得分:2)

这是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