[zeromq-dev] ZeroMQ with Python and a basic task
KIU Shueng Chuan
nixchuan at gmail.com
Sun Mar 8 01:31:35 CET 2015
Isn't the system python in redhat 7 python 2.7? Are you installing
libraries in python 2.7 and trying to run your script in python 2.6.6?
"yum install python-devel" would be installing for python 2.7 for instance.
If you don't need to use zeromq 4.x, redhat's repository should include
both pyzmq (for python 2.7) and zeromq 3.2.x.
On 8 Mar 2015 07:28, "Michael Cuggy" <mcuggy at gmail.com> wrote:
> I am trying to run the Hello World python program taken from this link:
>
> http://zguide.zeromq.org/py:hwclient
>
> I cannot get it to run. I get an error about the import zeromq line.
> I lifted the code verbatim. Maybe I installed ZeroMQ incorrectly?
>
> I am using Python 2.6.6 and RedHat Linux version 7. I installed ZeroMQ
> by I running these commands as root:
>
> tar -xvf zeromq-4.0.5.tar.gz
>
> cd zeromq-4.0.5
>
> ./configure
>
> make
>
> make install
>
> ldconfig
>
> yum install python-devel
>
> easy_install pyzmq
>
> When I try to run Hello.py I get this error:
>
> Traceback (most recent call last): File "Hello.py", line 7, in import
> zmq ImportError: No module named zmq
>
> How do I get the module zmq installed? pip install pyzmq indicates
> that the requirement has already been satisfied. python -v foo.py
> didn't show me anything meaningful.
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150308/51df001f/attachment.htm>
More information about the zeromq-dev
mailing list