При запуске кода на Python выкидывает ошибку, что делать?
Traceback (most recent call last):
File "C:\Users\Admin\PycharmProjects\pythonProject\.venv\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: Произошел сбой в программе инициализации библиотеки динамической компоновки (DLL).
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Admin\PycharmProjects\pythonProject\main.py", line 1, in <module>
from deepface import DeepFace
File "C:\Users\Admin\PycharmProjects\pythonProject\.venv\Lib\site-packages\deepface\DeepFace.py", line 15, in <module>
import tensorflow as tf
File "C:\Users\Admin\PycharmProjects\pythonProject\.venv\Lib\site-packages\tensorflow\__init__.py", line 40, in <module>
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow # pylint: disable=unused-import
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\PycharmProjects\pythonProject\.venv\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 85, in <module>
raise ImportError(
ImportError: Traceback (most recent call last):
File "C:\Users\Admin\PycharmProjects\pythonProject\.venv\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: Произошел сбой в программе инициализации библиотеки динамической компоновки (DLL).
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors for some common causes and solutions.
If you need help, create an issue at https://github.com/tensorflow/tensorflow/issues and include the entire stack trace above this error message.
Как это исправить?
если надо, вот код:
https://github.com/pythontoday/face_analyzer