PySNMP Error: pysnmp.smi.error.SmiError
问题 I am running a Python program on a Windows XP machine. When I run the program, I get the following error: File "C:\Python27\lib\pysnmp\smi\builder.pyt, line 230, in loadModules... pysnmp.smi.error.SmiError: MIB file "SNMPv2-MIB.py[co]" not found in search path The file SNMPv2-MIB.py is currently located in C:\Python27\Lib\pysnmp\smi\mibs . Does anyone know how I can solve this? 回答1: if a mib is missing make sure you have performed a pip install pysnmp-mibs first if you used pip install pysnmp