1.问题描述
在装好tensorflow时出现了报错
具体错误为:File " stdin ", line 1 IndentationError: unexpected indent
>>> import tensorflow as tf
File "<stdin>", line 1
import tensorflow as tf
^
IndentationError: unexpected indent
2.解决
这个错误是缩进不对,检查一下是不是多打了空格,python对缩进是比较敏感的。
把import前空格删除就好了。如图,再测试就没有问题了。

End。