总之,计算机A不能引用计算机A生成的DLL。
Traceback (most recent call last):
File "C:\Users\lenovo\Desktop\HIK_YOLO_Python\HKIPcamera.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "D:\Anaconda3\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 648, in _load_unlocked
File "<frozen importlib._bootstrap>", line 560, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/lenovo/Desktop/HIK_YOLO_Python/test.py", line 1, in <module>
import HKIPcamera
File "C:\Users\lenovo\Desktop\HIK_YOLO_Python\HKIPcamera.py", line 17, in <module>
_HKIPcamera = swig_import_helper()
File "C:\Users\lenovo\Desktop\HIK_YOLO_Python\HKIPcamera.py", line 16, in swig_import_helper
return importlib.import_module('_HKIPcamera')
File "D:\Anaconda3\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed: The specified module could not be found
答案 0 :(得分:-1)
很好...看来我忘记了一个目录。