The following instructions should work on your Raspbian distribution. Please report any problem. :)
sudo apt-get install libtool pkg-config build-essential autoconf automake
ZeroMQ builds against the Sodium library.
wget https://github.com/jedisct1/libsodium/releases/download/1.0.3/libsodium-1.0.3.tar.gz
tar -zxvf libsodium-1.0.3.tar.gz
cd libsodium-1.0.3/
./configure
make
sudo make install
wget https://github.com/zeromq/libzmq/releases/download/v4.3.2/zeromq-4.3.2.tar.gz
tar -zxvf zeromq-4.3.2.tar.gz
cd zeromq-4.3.2/
./configure
make
sudo make install
sudo ldconfig
The pyzmq package requires python-dev
to compile.
sudo apt-get install python-dev python-pip
sudo pip install pyzmq
sudo apt-get install python3-dev python3-pip
sudo pip3 install pyzmq