更新 完美解决 Python 3.10 环境下 PySNMP 诡异的 (unknown location) 导入报错
@@ -46,7 +46,6 @@ ImportError: cannot import name 'SnmpEngine' from 'pysnmp.hlapi' (unknown locati
|
|||||||
在你的 snmp_service.py 文件最顶部(必须在所有 pysnmp 导入之前),加入以下代码:
|
在你的 snmp_service.py 文件最顶部(必须在所有 pysnmp 导入之前),加入以下代码:
|
||||||
|
|
||||||
```
|
```
|
||||||
Python
|
|
||||||
import collections
|
import collections
|
||||||
import collections.abc
|
import collections.abc
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|||||||
Reference in New Issue
Block a user