<h2 dir="auto">System information</h2>
<p dir="auto">Have I written custom code (as opposed to using a stock example script provided in TensorFlow): &gt;&gt;&gt; import tensorflow as tf  (from example script)<br>
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Windows 7 64bit<br>
TensorFlow installed from (source or binary): binary<br>
TensorFlow version (use command below): 1.8<br>
Python version: 3.6.6<br>
Bazel version (if compiling from source): N/A<br>
GCC/Compiler version (if compiling from source): N/A<br>
CUDA/cuDNN version: N/A<br>
GPU model and memory: N/A<br>
Exact command to reproduce: import tensorflow as tf</p>
<h2 dir="auto">After much fruitless effort to install the java version of Tensorflow on my windows machine, i decide to give the python a trial.<br>
System Information<br>
OS: Windows 7 64bit,<br>
Graphics:   Intel HD Graphics</h2>
<p dir="auto">First i download Python 3.6.6 and install. After setting the path, i tested and everything works fine:<br>
C:\Users\Luke&gt;python<br>
Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32<br>
Type "help", "copyright", "credits" or "license" for more information.</p>
<blockquote>
<blockquote>
<blockquote>
</blockquote>
</blockquote>
</blockquote>
<h2 dir="auto">Next, run the Tensorflow installation command from the Terminal window:<br>
C:\Windows\system32&gt;cd<br>
C:&gt;pip3 install --upgrade tensorflow<br>
Collecting tensorflow<br>
Downloading <a href="https://files.pythonhosted.org/packages/f4/88/980d7032b7408fcca5b0b8d420fcd97919197a9e7acf280ab74fc7db6993/tensorflow-1.8.0-cp36-cp36m-win_amd64.whl" rel="nofollow">https://files.pythonhosted.org/packages/f4/88/980d7032b7408fcca5b0b8d420fcd97919197a9e7acf280ab74fc7db6993/tensorflow-1.8.0-cp36-cp36m-win_amd64.whl</a> (34.4MB)<br>
100% |████████████████████████████████| 34.4MB 23kB/s<br>
Collecting termcolor&gt;=1.1.0 (from tensorflow)<br>
Downloading <a href="https://files.pythonhosted.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz" rel="nofollow">https://files.pythonhosted.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz</a><br>
Collecting gast&gt;=0.2.0 (from tensorflow)<br>
Downloading <a href="https://files.pythonhosted.org/packages/5c/78/ff794fcae2ce8aa6323e789d1f8b3b7765f601e7702726f430e814822b96/gast-0.2.0.tar.gz" rel="nofollow">https://files.pythonhosted.org/packages/5c/78/ff794fcae2ce8aa6323e789d1f8b3b7765f601e7702726f430e814822b96/gast-0.2.0.tar.gz</a><br>
Collecting numpy&gt;=1.13.3 (from tensorflow)<br>
Downloading <a href="https://files.pythonhosted.org/packages/0d/b7/0c804e0bcba6505f8392d042d5e333a5e06f308e019517111fbc7767a0bc/numpy-1.14.5-cp36-none-win_amd64.whl" rel="nofollow">https://files.pythonhosted.org/packages/0d/b7/0c804e0bcba6505f8392d042d5e333a5e06f308e019517111fbc7767a0bc/numpy-1.14.5-cp36-none-win_amd64.whl</a> (13.4MB)<br>
100% |████████████████████████████████| 13.4MB 82kB/s<br>
Collecting absl-py&gt;=0.1.6 (from tensorflow)<br>
Downloading <a href="https://files.pythonhosted.org/packages/57/8d/6664518f9b6ced0aa41cf50b989740909261d4c212557400c48e5cda0804/absl-py-0.2.2.tar.gz" rel="nofollow">https://files.pythonhosted.org/packages/57/8d/6664518f9b6ced0aa41cf50b989740909261d4c212557400c48e5cda0804/absl-py-0.2.2.tar.gz</a> (82kB)<br>
100% |████████████████████████████████| 92kB 55kB/s<br>
Collecting tensorboard&lt;1.9.0,&gt;=1.8.0 (from tensorflow)<br>
Downloading <a href="https://files.pythonhosted.org/packages/59/a6/0ae6092b7542cfedba6b2a1c9b8dceaf278238c39484f3ba03b03f07803c/tensorboard-1.8.0-py3-none-any.whl" rel="nofollow">https://files.pythonhosted.org/packages/59/a6/0ae6092b7542cfedba6b2a1c9b8dceaf278238c39484f3ba03b03f07803c/tensorboard-1.8.0-py3-none-any.whl</a> (3.1MB)<br>
100% |████████████████████████████████| 3.1MB 32kB/s<br>
Collecting grpcio&gt;=1.8.6 (from tensorflow)<br>
Downloading <a href="https://files.pythonhosted.org/packages/d5/c6/15728549704f9c03db7179b7f99303b91b7703e18a50f5e7b47e59b289ea/grpcio-1.13.0-cp36-cp36m-win_amd64.whl" rel="nofollow">https://files.pythonhosted.org/packages/d5/c6/15728549704f9c03db7179b7f99303b91b7703e18a50f5e7b47e59b289ea/grpcio-1.13.0-cp36-cp36m-win_amd64.whl</a> (1.4MB)<br>
100% |████████████████████████████████| 1.4MB 42kB/s<br>
Collecting wheel&gt;=0.26 (from tensorflow)<br>
Downloading <a href="https://files.pythonhosted.org/packages/81/30/e935244ca6165187ae8be876b6316ae201b71485538ffac1d718843025a9/wheel-0.31.1-py2.py3-none-any.whl" rel="nofollow">https://files.pythonhosted.org/packages/81/30/e935244ca6165187ae8be876b6316ae201b71485538ffac1d718843025a9/wheel-0.31.1-py2.py3-none-any.whl</a> (41kB)<br>
100% |████████████████████████████████| 51kB 60kB/s<br>
Collecting protobuf&gt;=3.4.0 (from tensorflow)<br>
Downloading <a href="https://files.pythonhosted.org/packages/75/7a/0dba607e50b97f6a89fa3f96e23bf56922fa59d748238b30507bfe361bbc/protobuf-3.6.0-cp36-cp36m-win_amd64.whl" rel="nofollow">https://files.pythonhosted.org/packages/75/7a/0dba607e50b97f6a89fa3f96e23bf56922fa59d748238b30507bfe361bbc/protobuf-3.6.0-cp36-cp36m-win_amd64.whl</a> (1.1MB)<br>
100% |████████████████████████████████| 1.1MB 45kB/s<br>
Collecting six&gt;=1.10.0 (from tensorflow)<br>
Downloading <a href="https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl" rel="nofollow">https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl</a><br>
Collecting astor&gt;=0.6.0 (from tensorflow)<br>
Downloading <a href="https://files.pythonhosted.org/packages/b2/91/cc9805f1ff7b49f620136b3a7ca26f6a1be2ed424606804b0fbcf499f712/astor-0.6.2-py2.py3-none-any.whl" rel="nofollow">https://files.pythonhosted.org/packages/b2/91/cc9805f1ff7b49f620136b3a7ca26f6a1be2ed424606804b0fbcf499f712/astor-0.6.2-py2.py3-none-any.whl</a><br>
Collecting markdown&gt;=2.6.8 (from tensorboard&lt;1.9.0,&gt;=1.8.0-&gt;tensorflow)<br>
Downloading <a href="https://files.pythonhosted.org/packages/6d/7d/488b90f470b96531a3f5788cf12a93332f543dbab13c423a5e7ce96a0493/Markdown-2.6.11-py2.py3-none-any.whl" rel="nofollow">https://files.pythonhosted.org/packages/6d/7d/488b90f470b96531a3f5788cf12a93332f543dbab13c423a5e7ce96a0493/Markdown-2.6.11-py2.py3-none-any.whl</a> (78kB)<br>
100% |████████████████████████████████| 81kB 37kB/s<br>
Collecting html5lib==0.9999999 (from tensorboard&lt;1.9.0,&gt;=1.8.0-&gt;tensorflow)<br>
Downloading <a href="https://files.pythonhosted.org/packages/ae/ae/bcb60402c60932b32dfaf19bb53870b29eda2cd17551ba5639219fb5ebf9/html5lib-0.9999999.tar.gz" rel="nofollow">https://files.pythonhosted.org/packages/ae/ae/bcb60402c60932b32dfaf19bb53870b29eda2cd17551ba5639219fb5ebf9/html5lib-0.9999999.tar.gz</a> (889kB)<br>
100% |████████████████████████████████| 890kB 43kB/s<br>
Collecting werkzeug&gt;=0.11.10 (from tensorboard&lt;1.9.0,&gt;=1.8.0-&gt;tensorflow)<br>
Downloading <a href="https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl" rel="nofollow">https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl</a> (322kB)<br>
100% |████████████████████████████████| 327kB 29kB/s<br>
Collecting bleach==1.5.0 (from tensorboard&lt;1.9.0,&gt;=1.8.0-&gt;tensorflow)<br>
Downloading <a href="https://files.pythonhosted.org/packages/33/70/86c5fec937ea4964184d4d6c4f0b9551564f821e1c3575907639036d9b90/bleach-1.5.0-py2.py3-none-any.whl" rel="nofollow">https://files.pythonhosted.org/packages/33/70/86c5fec937ea4964184d4d6c4f0b9551564f821e1c3575907639036d9b90/bleach-1.5.0-py2.py3-none-any.whl</a><br>
Requirement not upgraded as not directly required: setuptools in c:\users\luke\appdata\local\programs\python\python36\lib\site-packages (from protobuf&gt;=3.4.0-&gt;tensorflow) (39.0.1)<br>
Installing collected packages: termcolor, gast, numpy, six, absl-py, markdown, html5lib, werkzeug, bleach, wheel, protobuf, tensorboard, grpcio, astor, tensorflow<br>
Running setup.py install for termcolor ... done<br>
Running setup.py install for gast ... done<br>
Running setup.py install for absl-py ... done<br>
The script markdown_py.exe is installed in 'c:\users\luke\appdata\local\programs\python\python36\Scripts' which is not on PATH.<br>
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.<br>
Running setup.py install for html5lib ... done<br>
The script wheel.exe is installed in 'c:\users\luke\appdata\local\programs\python\python36\Scripts' which is not on PATH.<br>
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.<br>
The script tensorboard.exe is installed in 'c:\users\luke\appdata\local\programs\python\python36\Scripts' which is not on PATH.<br>
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.<br>
The scripts freeze_graph.exe, saved_model_cli.exe, tensorboard.exe, toco.exe and toco_from_protos.exe are installed in 'c:\users\luke\appdata\local\programs\python\python36\Scrip<br>
ts' which is not on PATH.<br>
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.<br>
Successfully installed absl-py-0.2.2 astor-0.6.2 bleach-1.5.0 gast-0.2.0 grpcio-1.13.0 html5lib-0.9999999 markdown-2.6.11 numpy-1.14.5 protobuf-3.6.0 six-1.11.0 tensorboard-1.8.0 t<br>
ensorflow-1.8.0 termcolor-1.1.0 werkzeug-0.14.1 wheel-0.31.1</h2>
<p dir="auto">From what i observed after the installation, i then added C:\users\luke\appdata\local\programs\python\python36\Scripts in my path ENV directly.<br>
After that i now open another Terminal and run the sample test.<br>
I first import the Tensorflow with this command:<br>
C:\Users\Luke&gt;cd\</p>
<p dir="auto">C:&gt;python<br>
Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32<br>
Type "help", "copyright", "credits" or "license" for more information.</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">import tensorflow as tf<br>
Traceback (most recent call last):<br>
File "C:\Users\Luke\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 14, in swig_import_helper<br>
return importlib.import_module(mname)<br>
File "C:\Users\Luke\AppData\Local\Programs\Python\Python36\Lib\importlib_<em>init</em>_.py", line 126, in import_module<br>
return _bootstrap._gcd_import(name[level:], package, level)<br>
File "", line 994, in _gcd_import<br>
File "", line 971, in _find_and_load<br>
File "", line 955, in _find_and_load_unlocked<br>
File "", line 658, in _load_unlocked<br>
File "", line 571, in module_from_spec<br>
File "", line 922, in create_module<br>
File "", line 219, in _call_with_frames_removed<br>
ImportError: DLL load failed with error code -1073741795</p>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "C:\Users\Luke\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "C:\Users\Luke\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 17, in <br>
_pywrap_tensorflow_internal = swig_import_helper()<br>
File "C:\Users\Luke\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 16, in swig_import_helper<br>
return importlib.import_module('<em>pywrap_tensorflow_internal')<br>
File "C:\Users\Luke\AppData\Local\Programs\Python\Python36\Lib\importlib_<em>init</em></em>.py", line 126, in import_module<br>
return _bootstrap._gcd_import(name[level:], package, level)<br>
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "", line 1, in <br>
File "C:\Users\Luke\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_<em>init</em>_.py", line 24, in <br>
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import<br>
File "C:\Users\Luke\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python_<em>init</em>_.py", line 49, in <br>
from tensorflow.python import pywrap_tensorflow<br>
File "C:\Users\Luke\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <br>
raise ImportError(msg)<br>
ImportError: Traceback (most recent call last):<br>
File "C:\Users\Luke\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 14, in swig_import_helper<br>
return importlib.import_module(mname)<br>
File "C:\Users\Luke\AppData\Local\Programs\Python\Python36\Lib\importlib_<em>init</em>_.py", line 126, in import_module<br>
return _bootstrap._gcd_import(name[level:], package, level)<br>
File "", line 994, in _gcd_import<br>
File "", line 971, in _find_and_load<br>
File "", line 955, in _find_and_load_unlocked<br>
File "", line 658, in _load_unlocked<br>
File "", line 571, in module_from_spec<br>
File "", line 922, in create_module<br>
File "", line 219, in _call_with_frames_removed<br>
ImportError: DLL load failed with error code -1073741795</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "C:\Users\Luke\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "C:\Users\Luke\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 17, in <br>
_pywrap_tensorflow_internal = swig_import_helper()<br>
File "C:\Users\Luke\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 16, in swig_import_helper<br>
return importlib.import_module('<em>pywrap_tensorflow_internal')<br>
File "C:\Users\Luke\AppData\Local\Programs\Python\Python36\Lib\importlib_<em>init</em></em>.py", line 126, in import_module<br>
return _bootstrap._gcd_import(name[level:], package, level)<br>
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'</p>
<p dir="auto">Failed to load the native TensorFlow runtime.</p>
<p dir="auto">See <a href="https://www.tensorflow.org/install/install_sources#common_installation_problems" rel="nofollow">https://www.tensorflow.org/install/install_sources#common_installation_problems</a></p>
<p dir="auto">for some common reasons and solutions.  Include the entire stack trace<br>
above this error message when asking for help.</p>
<blockquote>
<blockquote>
<blockquote>
</blockquote>
</blockquote>
</blockquote>
<hr>
<p dir="auto">The error code i have: -1073741795 does not match with any of those listed in the documentation table.<br>
[I followed this official documentation](<a href="https://www.tensorflow.org/install/install_windows#Common" rel="nofollow">https://www.tensorflow.org/install/install_windows#Common</a> installation problems)<br>
I need community assistance please.</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>