安装net-snmp-python
下载 net-snmp
。/configure
make
make install
 cd ./python
python setup.py build
python setup.py test
这里会提示错误
ln -s /usr/local/lib/libnetsnmp.so.30 /usr/lib/libnetsnmp.so.30
python setup.py install
1.error: command 'gcc' failed with exit status 1`

  若出现上述错误,安装 python-devel libevent-devel 即可。