打开由darkflow创建的exe文件时出错

时间:2019-11-16 11:57:55

标签: python exe pyinstaller darkflow

我正在使用darkflow进行自定义对象检测,它工作得很好,并且可以通过anaconda提示符完美运行。我使用pyinstaller制作了exe,因此当我运行exe时,它会显示上述错误。谁能帮我摆脱这个困扰?我也尝试过在全球安装darkflow,但是没有用。

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 INFO:更新资源类型24名称2语言1033 136413 INFO:更新清单C:\ Users \ CamfyVision \ AppData \ Roaming \ pyinstaller \ bincache00_py36_64bit \ darkflow.cython_utils.cy_yolo2_findboxes.pyd 136414 INFO:更新资源类型24名称2语言1033

0 个答案:

没有答案