简体   繁体   English

面对这样的问题,例如找不到 model name edge tpu 和 no module name edgeTPU_cpp_wrapper

[英]Facing such problem like no model name edge tpu found and no module name edgeTPU_cpp_wrapper

Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/edgetpu/swig/edgetpu_cpp_wrapper.py", line 18, in swig_import_helper fp, pathname, description = imp.find_module('_edgetpu_cpp_wrapper', [dirname( file )]) File "/usr/lib/python3.9/imp.py", line 296, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named '_edgetpu_cpp_wrapper'追溯(最近调用最后):文件“/usr/local/lib/python3.9/dist-packages/edgetpu/swig/edgetpu_cpp_wrapper.py”,第 18 行,in swig_import_helper fp,路径名,描述 = imp.find_module(' _edgetpu_cpp_wrapper', [dirname( file )]) 文件“/usr/lib/python3.9/imp.py”,第 296 行,在 find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named '_edgetpu_cpp_wrapper'

During handling of the above exception, another exception occurred:在处理上述异常的过程中,又出现了一个异常:

Traceback (most recent call last): File "/home/pi/DeepPiCar/models/object_detection/code/coco_object_detection.py", line 9, in <module> import edgetpu.detection.engine File "/usr/local/lib/python3.9/dist-packages/edgetpu/detection/engine.py", line 17, in <module> from edgetpu.basic.basic_engine import BasicEngine File "/usr/local/lib/python3.9/dist-packages/edgetpu/basic/basic_engine.py", line 17, in <module> from edgetpu.swig.edgetpu_cpp_wrapper import BasicEnginePythonWrapper File "/usr/local/lib/python3.9/dist-packages/edgetpu/swig/edgetpu_cpp_wrapper.py", line 28, in <module> _edgetpu_cpp_wrapper = swig_import_helper() File "/usr/local/lib/python3.9/dist-packages/edgetpu/swig/edgetpu_cpp_wrapper.py", line 20, in swig_import_helper import _edgetpu_cpp_wrapper ModuleNotFoundError: No module named '_edgetpu_cpp_wrapper'追溯(最近调用最后):文件“/home/pi/DeepPiCar/models/object_detection/code/coco_object_detection.py”,第 9 行,在 <module> import edgetpu.detection.engine 文件“/usr/local/lib/ python3.9/dist-packages/edgetpu/detection/engine.py",第 17 行,在 <module> from edgetpu.basic.basic_engine import BasicEngine File "/usr/local/lib/python3.9/dist-packages/edgetpu /basic/basic_engine.py", 第 17 行,在 <module> from edgetpu.swig.edgetpu_cpp_wrapper import BasicEnginePythonWrapper File "/usr/local/lib/python3.9/dist-packages/edgetpu/swig/edgetpu_cpp_wrapper.py", line 28、在 <module> _edgetpu_cpp_wrapper = swig_import_helper() 文件“/usr/local/lib/python3.9/dist-packages/edgetpu/swig/edgetpu_cpp_wrapper.py”中,第 20 行,在 swig_import_helper import _edgetpu_cpp_wrapper ModuleNotFoundError: No module named ' _edgetpu_cpp_wrapper'

Tyring to open up object detection program through edgeTPU.尝试通过edgeTPU开启object检测程序。 ERROR.!错误。! NO Module Found.未找到模块。

Edge TPU API is deprecated. Edge TPU API已弃用。 Please modify your code/project to work with pycoral API请修改您的代码/项目以使用pycoral API

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM