当前位置:首页 > 联系方式 >

Python With ZeroMQ Again

编辑:北京聚贤贵都宾馆有限公司时间:2017-09-08 23:08:28阅读次数:2
Python With ZeroMQ Again

prepare ...

sudo apt-get install libel autoconf automake uuid-dev


sudo apt-get install python-dev


Download

I suggest you looking for the latest version:

>>> http://zeromq.org/intro:get-the-software

and Download it at your machine,and then

use scp tool cp it to your server ...

tar -xvf zeromq-*

and After you Enter:

cd /zeromq*

./configure

You can see ,there are a file name as 'Makefile' ...

make

and you can take a break ....

make install

ldconfig

Normally ,You see nothing

install pyzmq ..

A method: pip install pyzmq

B method: download pyzmq package ...

>>>https://github.com/zeromq/pyzmq/downloads/

we use B method ..

tar -zxvf pyzmq*

and then run :

python setup.py build_ext --rpath=/opt/zeromq-dev/lib --inplace



I got a error:

zmq/devices/monitoredqueue.c:8:22: fatal error: pyconfig.h: No such file or directory


fix it ..

apt-get install python-dev


Testing ....

python -c import zmq


done ...
,站群系统

企业建站2800元起,携手武汉肥猫科技,做一个有见地的颜值派!更多优惠请戳:武汉网站开发 https://www.feimao666.com

上一篇:如何部署Python Web应用:记录一次Heroku部署完整过程 下一篇:最后一页

相关阅读