>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "tensorflow/__init__.py", line 23, in <module>
from tensorflow.python import *
File "tensorflow/python/__init__.py", line 48, in <module>
from tensorflow.python import pywrap_tensorflow
ImportError: cannot import name pywrap_tensorflow
python误以为tensorflow目录中的tensorflow就是要导入的模块。
解决办法,不要在tensorflow中运行python或者ipython