Traceback (most recent call last): File "D:\23101\CCCCCCCCC\mydetectTF.py", line 97, in <module> import tflite_runtime.interpreter as tflite File "E:\ProgramFile\Anaconda\anaconda3\envs\python38\lib\site-packages\tflite_runtime\interpreter.py", line 36, in <module> from tflite_runtime import _pywrap_tensorflow_interpreter_wrapper as _interpreter_wrapper ImportError: generic_type: type "InterpreterWrapper" is already registered!
时间: 2023-07-31 16:10:11 浏览: 194
这个错误可能是因为你同时安装了多个版本的 TensorFlow,导致版本冲突。你可以尝试卸载所有版本的 TensorFlow,然后重新安装最新版本的 TensorFlow。你也可以使用虚拟环境来避免版本冲突,比如使用 Anaconda 或者 Python 自带的 venv 模块来创建虚拟环境。另外,你还可以尝试更新 tflite_runtime 模块,看看是否能够解决这个问题。
阅读全文
相关推荐


