Python 3.12.2 (tags/v3.12.2:6abddd9, Feb 6 2024, 21:26:36) [MSC v.1937 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
import tensorflow
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\dell\AppData\Local\Programs\Python\Python312\Lib\site-packages\tensorflow_init_.py”, line 42, in
from tensorflow.python import tf2 as _tf2
File “C:\Users\dell\AppData\Local\Programs\Python\Python312\Lib\site-packages\tensorflow\python\tf2.py”, line 21, in
from tensorflow.python.platform import _pywrap_tf2
ImportError: DLL load failed while importing _pywrap_tf2: A dynamic link library (DLL) initialization routine failed.
these are the messages i get after installing tensorflow using pip on python 3.12.2
C:\Users\dell>pip install tensorflow
Collecting tensorflow
Using cached tensorflow-2.16.1-cp312-cp312-win_amd64.whl.metadata (3.5 kB)
Requirement already satisfied: tensorflow-intel==2.16.1 in c:\users\dell\appdata\local\programs\python\python312\lib\site-packages (from tensorflow) (2.16.1)
Requirement already satisfied: absl-py>=1.0.0 in c:\users\dell\appdata\local\programs\python\python312\lib\site-packages (from tensorflow-intel==2.16.1->tensorflow) (2.1.0)
Requirement already satisfied: astunparse>=1.6.0 in c:\users\dell\appdata\local\programs\python\python312\lib\site-packages (from tensorflow-intel==2.16.1->tensorflow) (1.6.3)
…
Requirement already satisfied: MarkupSafe>=2.1.1 in c:\users\dell\appdata\local\programs\python\python312\lib\site-packages (from werkzeug>=1.0.1->tensorboard<2.17,>=2.16->tensorflow-intel==2.16.1->tensorflow) (2.1.5)
Requirement already satisfied: markdown-it-py>=2.2.0 in c:\users\dell\appdata\local\programs\python\python312\lib\site-packages (from rich->keras>=3.0.0->tensorflow-intel==2.16.1->tensorflow) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\users\dell\appdata\local\programs\python\python312\lib\site-packages (from rich->keras>=3.0.0->tensorflow-intel==2.16.1->tensorflow) (2.17.2)
Requirement already satisfied: mdurl~=0.1 in c:\users\dell\appdata\local\programs\python\python312\lib\site-packages (from markdown-it-py>=2.2.0->rich->keras>=3.0.0->tensorflow-intel==2.16.1->tensorflow) (0.1.2)
Using cached tensorflow-2.16.1-cp312-cp312-win_amd64.whl (2.1 kB)
Installing collected packages: tensorflow
Successfully installed tensorflow-2.16.1
how to sort this problem out, can anyone siggest? thanks in advance