I receive an error when trying to import zmq:
zmq
Traceback (most recent call last): File \"BasicPub.py\", line 1, in import zm
This link provides a few options on how to uninstall zeromq if you use a Debian operating system.
You would need to use the purge command:
purge
sudo apt-get purge --auto-remove python-zmq