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" <[email protected]> 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 > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
