我正在使用 darkflow 进行自定义对象检测,它运行良好,并且通过 anaconda 提示符完美运行。我使用pyinstaller制作了exe,所以当我运行exe时,它显示了上述错误。谁能帮我摆脱这个?我也尝试在全球范围内安装暗流,但它没有用。
Traceback (most recent call last):
File "demo.py", line 1, in <module>
from darkflow.net.build import TFNet
File "c:\users\camfyvision\anaconda3\envs\darkflow\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
exec(bytecode, module.__dict__)
File "darkflow\net\build.py", line 7, in <module>
from .framework import create_framework
File "c:\users\camfyvision\anaconda3\envs\darkflow\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
exec(bytecode, module.__dict__)
File "darkflow\net\framework.py", line 1, in <module>
from . import yolo
File "c:\users\camfyvision\anaconda3\envs\darkflow\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
exec(bytecode, module.__dict__)
File "darkflow\net\yolo\__init__.py", line 2, in <module>
from . import predict
File "c:\users\camfyvision\anaconda3\envs\darkflow\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
exec(bytecode, module.__dict__)
File "darkflow\net\yolo\predict.py", line 7, in <module>
from ...cython_utils.cy_yolo_findboxes import yolo_box_constructor
File "c:\users\camfyvision\anaconda3\envs\darkflow\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 714, in load_module
module = loader.load_module(fullname)
File "darkflow\cython_utils\cy_yolo_findboxes.pyx", line 1, in init darkflow.cython_utils.cy_yolo_findboxes
import numpy as np
ModuleNotFoundError: No module named 'darkflow.cython_utils.nms'
这是我在将 exe 拖放到 propmt 时遇到的错误,并且我在下面提供了我在使用 pyinstaller 制作 exe 时遇到的错误的相应信息。
136360 信息:更新 C:\Users\CamfyVision\AppData\Roaming\pyinstaller\bincache00_py36_64bit\darkflow.cython_utils.cy_yolo_findboxes.pyd 中的清单 136361 信息:更新资源类型 24 名称 2 语言 1033 136413 信息:更新 C:\Users\ 中的清单CamfyVision\AppData\Roaming\pyinstaller\bincache00_py36_64bit\darkflow.cython_utils.cy_yolo2_findboxes.pyd 136414 信息:更新资源类型 24 名称 2 语言 1033