Python2.5中的ZMQ

时间:2017-03-13 10:02:03

标签: python zeromq python-2.5 pyzmq

我需要在Python2.5中安装zmq。 在github中,他们说最后一个支持Python2.5的版本是:pyzmq 2.1.11。从这里他们已经取消了支持。在他们的发布页面Downloads上,他们有几个安装程序,但不适用于Python2.5。因此,我已经下载了2.1.11版,我尝试过:

python setup.py install

但是给了我以下错误: 警告:

Could not copy libzmq into zmq/, which is usually necessary on
Windows.Please specify zmq prefix via configure --zmq=/path/to/zmq or copy
libzmq into zmq/ manually.
Configure: Autodetecting ZMQ settings...
Custom ZMQ dir:       C:\Users\puig\Documents\zmq\libzmq\tests
error: MSVCCompiler instance has no attribute '_MSVCCompiler__root'
Fatal:
Failed to build or run ZMQ test program.  Please check to make sure:

* You have a C compiler installed
* A development version of Python is installed (including header files)
* A development version of ZMQ >= 2.1.4 is installed (including header files)
* 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`

我试图下载libzmq,并指定了路径:

python setup.py configure --zmq=/path/libzmq

但它不起作用,我不理解libzmq和pyzmq之间的区别。我不知道在哪里可以找到libzmq.dll以及在哪里复制它

谢谢!

0 个答案:

没有答案