当我尝试调试https://github.com/FreeOpcUa/python-opcua/blob/master/examples/server-example.py时,我不断得到
Exception has occurred: ImportError
DLL load failed while importing objectify: The specified module could not be found.
File "D:\python-opcua-master\examples\server-example.py", line 10, in <module>
from opcua.ua import NodeId, NodeIdType
ImportError: DLL load failed while importing objectify: The specified module could not be found.
我已按照所有说明进行操作并检查了自述文件中列出的依赖项。
(base) PS C:\Users\me> pip install opcua
输出
Requirement already satisfied: opcua in c:\users\me\anaconda3\lib\site-packages (0.98.13)
Requirement already satisfied: lxml in c:\users\me\anaconda3\lib\site-packages (from opcua) (4.9.1)
Requirement already satisfied: python-dateutil in c:\users\me\anaconda3\lib\site-packages (from opcua) (2.8.2)
Requirement already satisfied: pytz in c:\users\me\anaconda3\lib\site-packages (from opcua) (2022.1)
Requirement already satisfied: six>=1.5 in c:\users\me\anaconda3\lib\site-packages (from python-dateutil->opcua) (1.16.0)
我用的是anaconda,我的python版本是
Python 3.9.13 (main, Aug 25 2022, 23:51:50) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
可能是什么问题?