【发布时间】:2014-04-24 21:45:47
【问题描述】:
我正在尝试在 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 如果安装不正确或缺少任何其他配置,请提供帮助。
【问题讨论】:
-
需要安装net-snmp-python包。