0MQ in virtualenv

I was able to install 0MQ on Ubuntu 12.04 by doing the following: $ sudo apt-get install libzmq-dev $ sudo apt-get install python-zmq

but when i went to use it in virtualenv it couldn't find the module. What do I need to do in my virtualenv to see it

+3


source to share


1 answer


Once you create the virtual disk and activate it, use pip to install Python packages. They will be installed in your virtualenv.



Alternatively, when creating the virtual file, include the system-wide packages (via a switch --system-site-packages

) inside it so that the system packages are visible in virtualenv.

+3


source







All Articles