Как исправить ошибку при установке TensorFlow?Python

Программы на Python
Anonymous
Как исправить ошибку при установке TensorFlow?

Сообщение Anonymous »

У меня возникла следующая проблема с установкой TensorFlow. Я использую Python 3.12.

Код: Выделить всё

Traceback (most recent call last):
File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, in 
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\midterm\1st.py", line 5, in 
from deepface import DeepFace
File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\deepface\DeepFace.py", line 15, in 
import tensorflow as tf
File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\tensorflow\__init__.py", line 38, in 
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow  # pylint: disable=unused-import
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\tensorflow\python\pywrap_tensorflow.py", line 85, in 
raise ImportError(
ImportError: Traceback (most recent call last):
File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, in 
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.
Как это исправить?

Подробнее здесь: https://stackoverflow.com/questions/789 ... tensorflow

Вернуться в «Python»