AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘问题

参考 链接: AttributeError: module ‘tensorflow’ has no attribute 'placeholder’问题.

import tensorflow as tf 换成
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

OK!

NO MODULE NAMED 'TENSORFLOW.EXAMPLES.TUTORIALS 解决方法

参考 https://www.freesion.com/article/4454387337/
链接下载这个包,解压后把它放进examples文件夹就可以了。https://share.weiyun.com/5HvAIJp

ok

你可能感兴趣的:(AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘问题)