Py0MQ: Python bindings for zeromq
C Python
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 2 commits ahead, 2254 commits behind zeromq:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


PyZMQ: Python bindings for 0MQ

This package contains Python bindings for 0QM. 0MQ is a lightweight and fast messaging implementation.

Building and installation

To build and install this Python package, you will first need to build and install the latest development version of 0MQ itself. After you have done this, follow these steps:

First, copy the setup.cfg.template file in this directory to setup.cfg and edit the include_dirs and library_dirs fields of the setup.cfg file to point to the directories that contain the library and header file for your 0MQ installation.

Cython is not required to build pyzmq, but it is required if you want to develop pyzmq.

Second, run this command:

python install

If you want to develop this package, instead of this last command do:

python build_ext --inplace
python develop

This will build the C extension inplace and then put this directory on your sys.path. With this setup you only have to run:

python build_ext --inplace

each time you change the .pyx files.

On Windows, it is easiest to simply copy libzmq.dll and zmq.h into the zmq subdirectory and set library_dirs to .\zmq.

On Linux, you will need to do one of the following:

  • Set LD_LIBRARY_PATH to point to the :file:`lib` directory of 0MQ.

  • Build the extension using the -rpath flag:

    python build_ext --rpath=/opt/zeromq-dev/lib --inplace


This project was started by Brian E. Granger (ellisonbg AT gmail DOT com).

The following people have contributed to the project:

  • Carlos Rocha (carlos DOT rocha AT gmail DOT com)
  • Andrew Gwozdziewycz (git AT apgwoz DOT com)
  • Fernando Perez (fernando DOT perez AT berkeley DOT edu)
  • Nicholas Piel (nicholas AT nichol DOT as)