[ØMQ] Getting started with ØMQ and Python on Windows 7, x64

ØMQ (zeroMQ) is one of these sexy "new" Message Queue Systems. I wanted to dive into it right away, starting with Java. However, building zeroMQ with Java Binding on Windows 7, x64 is a pain (read: Did not work out fast enough - as I wanted to get my feet wet fast!) - so I switched over to Python. Well. Getting that to work is quite easy.

1.) Download and install latest zeroMQ
You can get the Windows Downloads on http://zeromq.org/distro:microsoft-windows, i choose the Stable Release 4.0.4 for Windows, x64 Release for Vista and newer. Just download and install it.

2.) Download and install Python
As I really like the 2.7 branch, I went for Python 2.7.9 which can be downloaded at https://www.python.org/downloads/.
You should install it with all default settings, but enable the "Add Python to System Path".
After installation you should check that the Path Variables for your Python Install are added correctly, i.e. "C:\Python27;C:\Python27\Scripts"
( More information on how to add path variables on http://www.computerhope.com/issues/ch000549.htm)

3.) Download and install the Python Binding pyzmq
Open a cmd / command prompt and enter pip install pyzmq. That should install pyzmq.

4.) Final words
After that you can open your Python IDLE and start with some demo code, which can be found on the Github of pyzmq: https://github.com/zeromq/pyzmq/tree/master/examples

The getting started guide is also an awesome source of information:
http://zguide.zeromq.org/py:all

Common Problems:
If you get an "pip not found", you most probably have not set the Path / Enviromental Variables correctly.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.