如何在窗口xp win32上为python2.6安装pyzmq 2.1.10?

时间:2011-11-16 23:22:23

标签: python windows zeromq

我正在尝试安装pyzmq,pipy似乎没有py2.6的工作窗口二进制文件 https://github.com/zeromq/pyzmq/downloads也没有。他们确实有pyzmq 2.1.4的msi但是那个似乎也没有用。

试过 easy_install-2.6 pyzmq 哪个绑定安装pyzmq 2.1.10但失败并出现错误

Fatal: ZMQ directory must be specified on Windows via setup.cfg or 'python setup.py      configure --zmq=/path/to/zeromq2'

错误:安装脚本以1

退出

然后绑了 easy_install-2.6 pyzmq configure --zmq = C:\ home \ installed_applications \ ZeroMQ_2.1.10 并得到相同的错误,所以我决定下载pyzmq-2.1.10 我进入C:\ Python26 \ Lib \ site-packages \ pyzmq-2.1.10 并运行 python setup.py configure --zmq == C:\ home \ installed_applications \ ZeroMQ_2.1.10 我明白了 运行configure


配置:自动检测ZMQ设置......     自定义ZMQ目录:C:\ home \ installed_applications \ ZeroMQ_2.1.10 致命:     无法运行ZMQ测试程序。请检查以确保:

* 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`


我也尝试使用zeromq在这里给出的指令构建它 http://www.zeromq.org/docs:windows-installations 但是我知道如何使用ruby安装程序或在说明中似乎存在差距。


最后我尝试使用Windows安装程序 http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyzmq 但这给了我以下错误

  
    
      

导入zmq       Traceback(最近一次调用最后一次):         文件“”,第1行,in         文件“C:\ Python26 \ Lib \ site-packages \ pyzmq-2.1.10 \ zmq__init __。py”,第35行,in           来自zmq.utils import initthreads #initialize threads       ImportError:无法导入名称initthreads

    
  

我也厌倦了通过http://www.zeromq.org/docs:windows-installations底部的链接进行安装 链接到http://miru.hk/archive/ZeroMQ-2.1.10-win32.exe但我也收到错误消息。

有没有人让这个工作lib与python2.6一起工作? python2.7似乎没有问题。

实际上即使你使用https://github.com/zeromq/pyzmq/downloads的win安装程序for python2.7 for zmq 2.1.10你也会得到错误IPython.zmq需要pyzmq&gt; = 2.1.4,但你有2.1。 10 即可。显然是检查版本的一个错误。旧的版本2.1.7工作似乎工作,因为7通过检查,因为我猜测它的一位数长。

1 个答案:

答案 0 :(得分:0)

在安装了Christoph Gohlke的非官方二进制文件之后,您是否尝试将libzmq.dll复制到python26 \ DLLs \?或者将其移动到PATH上的目录

相关问题