前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Python netsnmp 模块

Python netsnmp 模块

作者头像
py3study
发布2020-01-07 10:16:26
9270
发布2020-01-07 10:16:26
举报
文章被收录于专栏:python3

1、 安装python开发库:yum -y install python-devel

2、安装python setuptools

3、编译安装netsnmp

tar xvf net-snmp-5.4.4.tar.gz cd net-snmp-5.4.4 ./configure --with-python-modules --prefix=/usr/local/net-snmp  --enable-developer --libdir=/usr/lib64 --enable-shared make make install

4、安装netsnmp python库

cd net-snmp-5.4.4/python python setup.py build python setup.py test python setup.py install

5、测试

[root@localhost python]# ipt -bash: ipt: command not found [root@localhost python]# ipython Python 2.7.3 (default, Jun 24 2012, 22:30:41)  Type "copyright", "credits" or "license" for more information.   IPython 0.10.1 -- An enhanced Interactive Python. ?         -> Introduction and overview of IPython's features. %quickref -> Quick reference. help      -> Python's own help system. object?   -> Details about 'object'. ?object also works, ?? prints more.   In [1]: import netsnmp   In [2]:

模块安装正常~

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019/09/17 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档