<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Win 10</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary): source</li>
<li>TensorFlow version: 1.10</li>
<li>Python version: 3.6</li>
<li>Installed using virtualenv: Canopy pip: 1.18</li>
<li>Bazel version (if compiling from source):NA</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version:NA</li>
<li>GPU model and memory:NA</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ImportError                               Traceback (most recent call last)
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in &lt;module&gt;()
     57 
---&gt; 58   from tensorflow.python.pywrap_tensorflow_internal import *
     59   from tensorflow.python.pywrap_tensorflow_internal import __version__

C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in &lt;module&gt;()
     27             return _mod
---&gt; 28     _pywrap_tensorflow_internal = swig_import_helper()
     29     del swig_import_helper

C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper()
     23             try:
---&gt; 24                 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
     25             finally:

C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\imp.py in load_module(name, file, filename, details)
    241         else:
--&gt; 242             return load_dynamic(name, filename, file)
    243     elif type_ == PKG_DIRECTORY:

C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\imp.py in load_dynamic(name, path, file)
    341             name=name, loader=loader, origin=path)
--&gt; 342         return _load(spec)
    343 

ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
&lt;ipython-input-7-6b0f4483b0d5&gt; in &lt;module&gt;()
----&gt; 1 import tensorflow as tf
      2 
      3 a = tf.Variable(1, name=&quot;a&quot;)
      4 b = tf.Variable(2, name=&quot;b&quot;)
      5 f = a + b

C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\__init__.py in &lt;module&gt;()
     20 
     21 # pylint: disable=g-bad-import-order
---&gt; 22 from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
     23 
     24 try:

C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\__init__.py in &lt;module&gt;()
     47 import numpy as np
     48 
---&gt; 49 from tensorflow.python import pywrap_tensorflow
     50 
     51 # Protocol buffers

C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in &lt;module&gt;()
     72 for some common reasons and solutions.  Include the entire stack trace
     73 above this error message when asking for help.&quot;&quot;&quot; % traceback.format_exc()
---&gt; 74   raise ImportError(msg)
     75 
     76 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long

ImportError: Traceback (most recent call last):
  File &quot;C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow.py&quot;, line 58, in &lt;module&gt;
    from tensorflow.python.pywrap_tensorflow_internal import *
  File &quot;C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py&quot;, line 28, in &lt;module&gt;
    _pywrap_tensorflow_internal = swig_import_helper()
  File &quot;C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py&quot;, line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File &quot;C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\imp.py&quot;, line 242, in load_module
    return load_dynamic(name, filename, file)
  File &quot;C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\imp.py&quot;, line 342, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.


Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/install_sources#common_installation_problems

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help."><pre class="notranslate"><code class="notranslate">ImportError                               Traceback (most recent call last)
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in &lt;module&gt;()
     57 
---&gt; 58   from tensorflow.python.pywrap_tensorflow_internal import *
     59   from tensorflow.python.pywrap_tensorflow_internal import __version__

C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in &lt;module&gt;()
     27             return _mod
---&gt; 28     _pywrap_tensorflow_internal = swig_import_helper()
     29     del swig_import_helper

C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper()
     23             try:
---&gt; 24                 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
     25             finally:

C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\imp.py in load_module(name, file, filename, details)
    241         else:
--&gt; 242             return load_dynamic(name, filename, file)
    243     elif type_ == PKG_DIRECTORY:

C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\imp.py in load_dynamic(name, path, file)
    341             name=name, loader=loader, origin=path)
--&gt; 342         return _load(spec)
    343 

ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
&lt;ipython-input-7-6b0f4483b0d5&gt; in &lt;module&gt;()
----&gt; 1 import tensorflow as tf
      2 
      3 a = tf.Variable(1, name="a")
      4 b = tf.Variable(2, name="b")
      5 f = a + b

C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\__init__.py in &lt;module&gt;()
     20 
     21 # pylint: disable=g-bad-import-order
---&gt; 22 from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
     23 
     24 try:

C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\__init__.py in &lt;module&gt;()
     47 import numpy as np
     48 
---&gt; 49 from tensorflow.python import pywrap_tensorflow
     50 
     51 # Protocol buffers

C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in &lt;module&gt;()
     72 for some common reasons and solutions.  Include the entire stack trace
     73 above this error message when asking for help.""" % traceback.format_exc()
---&gt; 74   raise ImportError(msg)
     75 
     76 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long

ImportError: Traceback (most recent call last):
  File "C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in &lt;module&gt;
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in &lt;module&gt;
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.


Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/install_sources#common_installation_problems

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
</code></pre></div>
<p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf

a = tf.Variable(1, name=&quot;a&quot;)
b = tf.Variable(2, name=&quot;b&quot;)
f = a + b

init = tf.global_variables_initializer()
with tf.Session() as s:
    init.run()
    print( f.eval() )"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>

<span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Variable</span>(<span class="pl-c1">1</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"a"</span>)
<span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Variable</span>(<span class="pl-c1">2</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"b"</span>)
<span class="pl-s1">f</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span> <span class="pl-c1">+</span> <span class="pl-s1">b</span>

<span class="pl-s1">init</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">global_variables_initializer</span>()
<span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">s</span>:
    <span class="pl-s1">init</span>.<span class="pl-en">run</span>()
    <span class="pl-en">print</span>( <span class="pl-s1">f</span>.<span class="pl-en">eval</span>() )</pre></div>
<p dir="auto"><strong>Any other info / logs</strong><br>
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.<br>
``</p>
<p dir="auto">As announced in release notes, TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets. This means on any CPU that do not have these instruction sets either CPU or GPU version of TF will fail to load with any of the following errors:</p>
<ul dir="auto">
<li><code class="notranslate">ImportError: DLL load failed:</code></li>
<li>A crash with return code 132</li>
</ul>
<p dir="auto">Our recommendation is to build TF from sources on these systems.</p>
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: ubuntu/windows/macos</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: binary</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.6 and up</li>
<li><strong>Python version</strong>:  2.7, 3.3, 3.4, 3.5, 3.6 and any newer</li>
<li><strong>Bazel version (if compiling from source)</strong>: n/a</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: n/a</li>
<li><strong>CUDA/cuDNN version</strong>: any</li>
<li><strong>GPU model and memory</strong>: any</li>
<li><strong>Exact command to reproduce</strong>: python -c "import tensorflow as tf"</li>
</ul>