Tensorflow _pywrap_tf2 ImportError: DLL load failed

Hello, I have a problem
python version: 3.9
estoy usando Visual Studio Code
tuve el mismo problema en Anaconda
this error happens to me
I originally made my code in python 3.12 but as I was getting this error I decided to try with 3.11.3 and I got to 3.9.
First it was “could not be” even though I had tensorflow and keras installed.
the error:

Traceback (most recent call last):
  File "c:\UsersAgustin\DesktopRecognition 2 modificationlanguages_signs.py", line 3, in <module>.
    import tensorflow as tf
  File "C:\Agustin\AppData\Local\Programs\Python\Python39\libsite-packages\tensorflow\__init__.py", line 42, in <module>
    from tensorflow.python import tf2 as _tf2
  File "C:\Agustin\AppData\Local\Programs\Python\Python39\librium\site-packages\tensorflow\python\tf2.py", line 21, in <module>
    from tensorflow.python.platform import _pywrap_tf2
ImportError: DLL load failed while importing _pywrap_tf2: Error in a dynamic link library (DLL) initialization routine.      
PS C:\UsersAgustin_Desktop_recognition_2 modification> 

my code:

import cv2
import numpy as np
import tensorflow as tf
from keras.model import Sequential
from keras.layers import Conv2D, MaxPooling2D, Flatten, Dense, Dropout
from keras.preprocessing.image import ImageDataGenerator

I also tried to install tensorflow 2.7.0 but it didn’t work because it doesn’t allow me to install it, like it doesn’t find it.
I am doing a sign language recognition project for my school, anyone who could help me I would appreciate it.