I'm using a Dell Precision M6400 which has an Intel Core 2 Duo T9800 2.93GHz with Windows 7 64 bit operating system. I downloaded and installed Python 3.6.3 (
https://www.python.org/downloads/release/python-363/)
I then opened a command prompt, running as administrator and then attempted to install tensorflow like this:
C:\Users\Peter Bateman>pip3 install --upgrade tensorflow
Collecting tensorflow
Downloading tensorflow-1.6.0-cp36-cp36m-win_amd64.whl (32.3MB)
100% |████████████████████████████████| 32.3MB 16kB/s
Collecting grpcio>=1.8.6 (from tensorflow)
Downloading grpcio-1.10.0-cp36-cp36m-win_amd64.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 527kB/s
Collecting wheel>=0.26 (from tensorflow)
Downloading wheel-0.30.0-py2.py3-none-any.whl (49kB)
100% |████████████████████████████████| 51kB 2.0MB/s
Collecting numpy>=1.13.3 (from tensorflow)
Downloading numpy-1.14.1-cp36-none-win_amd64.whl (13.4MB)
100% |████████████████████████████████| 13.4MB 59kB/s
Collecting tensorboard<1.7.0,>=1.6.0 (from tensorflow)
Downloading tensorboard-1.6.0-py3-none-any.whl (3.0MB)
100% |████████████████████████████████| 3.1MB 254kB/s
Collecting astor>=0.6.0 (from tensorflow)
Downloading astor-0.6.2-py2.py3-none-any.whl
Collecting absl-py>=0.1.6 (from tensorflow)
Downloading absl-py-0.1.11.tar.gz (80kB)
100% |████████████████████████████████| 81kB 2.6MB/s
Collecting six>=1.10.0 (from tensorflow)
Downloading six-1.11.0-py2.py3-none-any.whl
Collecting protobuf>=3.4.0 (from tensorflow)
Downloading protobuf-3.5.2-cp36-cp36m-win_amd64.whl (958kB)
100% |████████████████████████████████| 962kB 701kB/s
Collecting termcolor>=1.1.0 (from tensorflow)
Downloading termcolor-1.1.0.tar.gz
Collecting gast>=0.2.0 (from tensorflow)
Downloading gast-0.2.0.tar.gz
Collecting bleach==1.5.0 (from tensorboard<1.7.0,>=1.6.0->tensorflow)
Downloading bleach-1.5.0-py2.py3-none-any.whl
Collecting html5lib==0.9999999 (from tensorboard<1.7.0,>=1.6.0->tensorflow)
Downloading html5lib-0.9999999.tar.gz (889kB)
100% |████████████████████████████████| 890kB 758kB/s
Collecting markdown>=2.6.8 (from tensorboard<1.7.0,>=1.6.0->tensorflow)
Downloading Markdown-2.6.11-py2.py3-none-any.whl (78kB)
100% |████████████████████████████████| 81kB 1.7MB/s
Collecting werkzeug>=0.11.10 (from tensorboard<1.7.0,>=1.6.0->tensorflow)
Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)
100% |████████████████████████████████| 327kB 1.3MB/s
Collecting setuptools (from protobuf>=3.4.0->tensorflow)
Downloading setuptools-38.5.2-py2.py3-none-any.whl (490kB)
100% |████████████████████████████████| 491kB 948kB/s
Installing collected packages: six, setuptools, protobuf, grpcio, wheel, numpy,
html5lib, bleach, markdown, werkzeug, tensorboard, astor, absl-py, termcolor, g
st, tensorflow
Found existing installation: setuptools 28.8.0
Uninstalling setuptools-28.8.0:
Successfully uninstalled setuptools-28.8.0
Running setup.py install for html5lib ... done
Running setup.py install for absl-py ... done
Running setup.py install for termcolor ... done
Running setup.py install for gast ... done
Successfully installed absl-py-0.1.11 astor-0.6.2 bleach-1.5.0 gast-0.2.0 grpci
-1.10.0 html5lib-0.9999999 markdown-2.6.11 numpy-1.14.1 protobuf-3.5.2 setuptoo
s-38.5.2 six-1.11.0 tensorboard-1.6.0 tensorflow-1.6.0 termcolor-1.1.0 werkzeug
0.14.1 wheel-0.30.0
I then attempted to test the tensorflow installation like this:
C:\Users\Peter Bateman>python
Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_te
sorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Program Files\Python36\lib\importlib\__init__.py", line 126, in impo
t_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
File "<frozen importlib._bootstrap>", line 571, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: DLL load failed with error code -1073741795
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_te
sorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_te
sorflow_internal.py", line 21, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_te
sorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('_pywrap_tensorflow_internal')
File "C:\Program Files\Python36\lib\importlib\__init__.py", line 126, in impo
t_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\Python36\lib\site-packages\tensorflow\__init__.py", li
e 24, in <module>
from tensorflow.python import *
File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\__init__.
y", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_te
sorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_te
sorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Program Files\Python36\lib\importlib\__init__.py", line 126, in impo
t_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
File "<frozen importlib._bootstrap>", line 571, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: DLL load failed with error code -1073741795
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_te
sorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_te
sorflow_internal.py", line 21, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_te
sorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('_pywrap_tensorflow_internal')
File "C:\Program Files\Python36\lib\importlib\__init__.py", line 126, in impo
t_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
ems
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
>>>
I've been reading through various forums and I can see others having this same error, but I don't understand the solution. Please help!