Checking For An Existing ZeroMQ Installation

Open a command window, and start Python3.

Then at the Python prompt type:

import zmq

If you see no errors, you have ZeroMQ installed.

If ZeroMQ is not installed, follow the procedures for your platform.

    Windows Users

Although you can build ZeroMQ from source, the easiest way to install is by using a provided MSI installer.

I used this link on Windows 10 64 Bit without issue. It installs both ZeroMQ and PyZMQ.

If you are running a 32 Bit machine, go here and find latest compatible MSI installer for your system.

Verify the installation

    Linux Users

Here are the steps necessary to build and install ZeroMQ on Ubuntu, BeagleBone Black and Raspberry Pi.

  1. sudo apt-get update
  2. sudo apt-get upgrade
  3. sudo apt-get install python3.5-dev (not available for Raspberry Pi)
  4. cd
  5. sudo apt-get install libtool pkg-config build-essential autoconf automake
  6. mkdir build
  7. cd build/
  8. wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.8.tar.gz
  9. tar -zxvf libsodium-1.0.8.tar.gz
  10. cd libsodium-1.0.8/
  11. ./configure
  12. make
  13. sudo make install
  14. sudo ldconfig
  15. cd ..
  16. wget http://download.zeromq.org/zeromq-4.1.4.tar.gz
  17. tar -zxvf zeromq-4.1.4.tar.gz
  18. cd zeromq-4.1.4/
  19. ./configure
  20. make
  21. sudo make install
  22. sudo ldconfig
  23. reboot

Verify the installation

    Mac Users

I do not own a Mac so I can't verify the following sources. But I have built from source for Linux on Ubuntu, BeagleBone Black and Raspberry Pi without issue.

Verify the installation