<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>: Arch Linux 4.15.8</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: Binary  wheel (<code class="notranslate">pip install tensorflow</code>)</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.7.0</li>
<li><strong>Python version</strong>: 3.6</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>: N/A</li>
<li><strong>GPU model and memory</strong>: Intel graphics, 4GB RAM</li>
<li><strong>Exact command to reproduce</strong>: <code class="notranslate">import tensorflow</code></li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">I've installed tensorflow v1.7.0 via PIP and I am having issues working with it. Upon entering a REPL and attempting to <code class="notranslate">import tensorflow</code> the REPL silently exits with an exit code of 132. I've run PDB and tried importing it and it appears it is exiting around the <code class="notranslate">from tensorflow.python import *</code> section of the tensorflow code. Looking at the PDB output it appears that code is exiting with error code 132 after running <code class="notranslate">importlib._bootstrap._find_and_load</code> which is a python internal.</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">PDB output from trying to import tensorflow (around the section that it exits):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; &lt;frozen importlib._bootstrap&gt;(191)_get_module_lock()-&gt;_ModuleLock('...40427194539368
(Pdb) n
&gt; &lt;frozen importlib._bootstrap&gt;(149)__enter__()
(Pdb) n
--Return--
&gt; &lt;frozen importlib._bootstrap&gt;(149)__enter__()-&gt;None
(Pdb) n
&gt; &lt;frozen importlib._bootstrap&gt;(969)_find_and_load()
(Pdb) n
&gt; &lt;frozen importlib._bootstrap&gt;(970)_find_and_load()
(Pdb) n
&gt; &lt;frozen importlib._bootstrap&gt;(971)_find_and_load()
(Pdb) n
"><pre class="notranslate"><code class="notranslate">&gt; &lt;frozen importlib._bootstrap&gt;(191)_get_module_lock()-&gt;_ModuleLock('...40427194539368
(Pdb) n
&gt; &lt;frozen importlib._bootstrap&gt;(149)__enter__()
(Pdb) n
--Return--
&gt; &lt;frozen importlib._bootstrap&gt;(149)__enter__()-&gt;None
(Pdb) n
&gt; &lt;frozen importlib._bootstrap&gt;(969)_find_and_load()
(Pdb) n
&gt; &lt;frozen importlib._bootstrap&gt;(970)_find_and_load()
(Pdb) n
&gt; &lt;frozen importlib._bootstrap&gt;(971)_find_and_load()
(Pdb) n

</code></pre></div>
<p dir="auto">What I'm trying to run:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ python3.6
Python 3.6.4 (default, Jan  5 2018, 02:35:40) 
[GCC 7.2.1 20171224] on linux
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import tensorflow as tf
$ echo $?
132"><pre class="notranslate">$ <span class="pl-s1">python3</span>.<span class="pl-c1">6</span>
<span class="pl-v">Python</span> <span class="pl-c1">3.6</span><span class="pl-c1">.4</span> (<span class="pl-s1">default</span>, <span class="pl-v">Jan</span>  <span class="pl-c1">5</span> <span class="pl-c1">2018</span>, <span class="pl-c1">02</span>:<span class="pl-c1">35</span>:<span class="pl-c1">40</span>) 
[<span class="pl-v">GCC</span> <span class="pl-c1">7.2</span><span class="pl-c1">.1</span> <span class="pl-c1">20171224</span>] <span class="pl-s1">on</span> <span class="pl-s1">linux</span>
<span class="pl-v">Type</span> <span class="pl-s">"help"</span>, <span class="pl-s">"copyright"</span>, <span class="pl-s">"credits"</span> <span class="pl-c1">or</span> <span class="pl-s">"license"</span> <span class="pl-k">for</span> <span class="pl-s1">more</span> <span class="pl-s1">information</span>.
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <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">echo</span> $?
<span class="pl-c1">132</span></pre></div>
<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>