无法在centos6.5上导入python中的netsnmp



我试图在python中使用netsnmp,但在遵循了与python中netsnmp相关的所有建议后,它无法导入。我使用以下命令安装了netsnmp

yum install net-snmp net-snmp-utils
easy_install ipython

snmpd服务正在运行。它仍然抛出这个错误

ImportError: No module named netsnmp

我使用的是Cent os 6.5和Python 2.6.6版本如果安装不正确或缺少任何其他配置,请提供帮助。

要在python中导入netsnmp,只需要net snmp python,两个net-snmp-net-snmp实用程序都可以删除。所以只有

yum install net-snmp-python

将在Cent os 6.5 上将netsnmp库导入python

yum install net-snmp net-snmp-utils

将启用来自Linux终端的SNMP查询。两者都可以独立工作。

最新更新