pyzmq安装错误,依赖gcc
我想安装ipython,所以按照这个链接http://ipython.org/ipython-doc/dev/install/install.html去安装pyzmq。但是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 个回答
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