运行 python 文件时出现包错误 |张量流

问题描述 投票:0回答:1
ImportError: DLL load failed while importing _pywrap_tf2: A dynamic link library (DLL) initialization routine failed.

我在包中发现了上述错误。我不明白为什么会发生错误。一切都是正确的,任何人都可以修复 Tensorflow 等库中的上述错误。 我正在 vs-code 中运行此代码。

python tensorflow deepface
1个回答
0
投票

尝试下面的代码。

pip uninstall tensorflow
pip install tensorflow==2.12.0 --upgrade
© www.soinside.com 2019 - 2024. All rights reserved.