Traceback (most recent call last): File "D:\23101\CCCCCCCCC\mydetectTF.py", line 94, in <module> import tensorflow as tf File "E:\ProgramFile\Anaconda\anaconda3\envs\python38\lib\site-packages\tensorflow\__init__.py", line 51, in <module> from ._api.v2 import compat File "E:\ProgramFile\Anaconda\anaconda3\envs\python38\lib\site-packages\tensorflow\_api\v2\compat\__init__.py", line 37, in <module> from . import v1 File "E:\ProgramFile\Anaconda\anaconda3\envs\python38\lib\site-packages\tensorflow\_api\v2\compat\v1\__init__.py", line 30, in <module> from . import compat File "E:\ProgramFile\Anaconda\anaconda3\envs\python38\lib\site-packages\tensorflow\_api\v2\compat\v1\compat\__init__.py", line 37, in <module> from . import v1 File "E:\ProgramFile\Anaconda\anaconda3\envs\python38\lib\site-packages\tensorflow\_api\v2\compat\v1\compat\v1\__init__.py", line 47, in <module> from tensorflow._api.v2.compat.v1 import lite File "E:\ProgramFile\Anaconda\anaconda3\envs\python38\lib\site-packages\tensorflow\_api\v2\compat\v1\lite\__init__.py", line 9, in <module> from . import experimental File "E:\ProgramFile\Anaconda\anaconda3\envs\python38\lib\site-packages\tensorflow\_api\v2\compat\v1\lite\experimental\__init__.py", line 8, in <module> from . import authoring File "E:\ProgramFile\Anaconda\anaconda3\envs\python38\lib\site-packages\tensorflow\_api\v2\compat\v1\lite\experimental\authoring\__init__.py", line 8, in <module> from tensorflow.lite.python.authoring.authoring import compatible File "E:\ProgramFile\Anaconda\anaconda3\envs\python38\lib\site-packages\tensorflow\lite\python\authoring\authoring.py", line 44, in <module> from tensorflow.lite.python import lite File "E:\ProgramFile\Anaconda\anaconda3\envs\python38\lib\site-packages\tensorflow\lite\python\lite.py", line 49, in <module> from tensorflow.lite.python.interpreter import Interpreter # pylint: disable=unused-import File "E:\ProgramFile\Anaconda\anaconda3\envs\python38\lib\site-packages\tensorflow\lite\python\interpreter.py", line 28, in <module> from tensorflow.lite.python.interpreter_wrapper import _pywrap_tensorflow_interpreter_wrapper as _interpreter_wrapper ImportError: generic_type: type "InterpreterWrapper" is already registered!
时间: 2023-06-28 21:10:13 浏览: 183
linux 下 pip3 报错“ File “/usr/bin/pip3”, line 9, in from pip import mainImportError: canno”处理
5星 · 资源好评率100%
这是一个 TensorFlow 的 ImportError 错误,可能是因为你安装的 TensorFlow 版本与其他包的版本不兼容,或者其他包与 TensorFlow 冲突。可以尝试重新安装 TensorFlow 或检查其他包是否与 TensorFlow 兼容。此外,你可以尝试使用 virtualenv 创建一个独立的 Python 环境,以避免不同包之间的冲突。
阅读全文