title: ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed; TensorFlow
body: <p>I'm trying to make an ai that detects object with the help of this(<a href="https://gilberttanner.com/blog/tensorflow-object-detection-with-tensorflow-2-creating-a-custom-model" rel="nofollow noreferrer">https://gilberttanner.com/blog/tensorflow-object-detection-with-tensorflow-2-creating-a-custom-model</a>) link and I ran into a problem when I finished the installation and was checking for errors using the code</p>
  <pre><code>python object_detection/builders/model_builder_tf2_test.py
  </code></pre>
  <h3>My system:</h3>
  <blockquote>
  <p>Windows 10</p>
  <p>Python 3.7.0</p>
  <p>TensorFlow 2.4.0</p>
  </blockquote>
  <h3>Output:</h3>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow.py&quot;, line 64, in &lt;module&gt;
      from tensorflow.python._pywrap_tensorflow_internal import *
  ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;object_detection/builders/model_builder_tf2_test.py&quot;, line 21, in &lt;module&gt;
      import tensorflow.compat.v1 as tf
    File &quot;C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\__init__.py&quot;, line 41, in &lt;module&gt;
      from tensorflow.python.tools import module_util as _module_util
    File &quot;C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\__init__.py&quot;, line 39, in &lt;module&gt;
      from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
    File &quot;C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow.py&quot;, line 83, in &lt;module&gt;
      raise ImportError(msg)
  ImportError: Traceback (most recent call last):
    File &quot;C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow.py&quot;, line 64, in &lt;module&gt;
      from tensorflow.python._pywrap_tensorflow_internal import *
  ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
  </code></pre>