报错AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘解决

用jupyter notebook 跑demo.ipynb程序时候报错AttributeError: module ‘tensorflow’ has no attribute 'placeholder’
解决方法:卸载tensorflow-2.0.1 ,安装tensorflow-1.15.0版本

pip install tensorflow-gpu-1.15.0

测试是否安装成功
报错AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘解决_第1张图片

你可能感兴趣的:(BS,tensorflow,深度学习)