我正在尝试安装此https://github.com/jordens/pyflycapture2 python 绑定。自述文件仅包含有关如何在 Linux 系统上执行此操作的说明,但我想该库应该仍然可以工作。
我能够运行“python setup.py install”,它似乎成功完成,但是当我尝试运行“python test_flycapture2.py”时,我收到了这个错误:
C:\Users\clinic\Desktop\pyflycapture2>python test_flycapture2.py Traceback (most recent call last):
File "test_flycapture2.py", line 20, in <module>
import flycapture2 as fc2
File "build\bdist.win-amd64\egg\flycapture2.py", line 7, in <module>
File "build\bdist.win-amd64\egg\flycapture2.py", line 6, in __bootstrap__
ImportError: DLL load failed: The specified module could not be found.
这似乎意味着 flycapture2 没有正确安装。当我打开一个 python 会话并执行“import flycapture2”时,我收到以下错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build\bdist.win-amd64\egg\flycapture2.py", line 7, in <module>
File "build\bdist.win-amd64\egg\flycapture2.py", line 6, in __bootstrap__
ImportError: DLL load failed: The specified module could not be found.
我在安装过程中做错了什么还是 pyflycapture2 不能在 Windows 上工作?