DLL Load Failed

How do is resolve this error ?

from tensorflow.python import tf2 as _tf2
from tensorflow.python.platform import _pywrap_tf2
ImportError: DLL load failed while importing _pywrap_tf2: A dynamic link library (DLL) initialization routine failed.

HI @CodeWithIdris

Welcome to the TensorFlow Forum!

Could you please provide us some more details on the issue like How did you install TensorFlow in your system and the reproducible code to replicate the error for better understanding on the issue?

Please follow the TF install official link to install TensorFlow as per your system OS and re-run your code.

Let us know if the issue still persists. Thank you.