tensorflow安装问题

错误:

C:\Users\Administrator>python

Python 3.5.2 |Anaconda custom (64-bit)| (default, Jul  5 2016, 11:41:13) [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\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in
    from tensorflow.python.pywrap_tensorflow_internal import *
ImportError: No module named 'tensorflow.python.pywrap_tensorflow_internal'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):
  File "", line 1, in
  File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\__init__.py", line 24, in
    from tensorflow.python import *
  File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\__init__.py", line 51, in
    from tensorflow.python import pywrap_tensorflow
  File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 52, in
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in
    from tensorflow.python.pywrap_tensorflow_internal import *
ImportError: No module named 'tensorflow.python.pywrap_tensorflow_internal'




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.

>>>



解决:

windows cpu版, tensorflow安装后,在Python环境下“import tensorflow”时出现上述错误。 
解决办法: install the Visual C++ Redistributable 2015 x64 as MSVCP140.DLL may be missing in your system. 

你可能感兴趣的:(tensorflow安装问题)