错误原因:版本原因,'tensorflow.contrib’只有1.1x系列有。
报错信息:ModuleNotFoundError: No module named 'tensorflow.contrib’或者module ‘tensorflow’ has no attribute ‘merge_summary’。
解决方法:
I had a similar problem and I solved it by:-
- upgrading python to 3.6
- pip uninstall tflearn
- pip install git+https://github.com/tflearn/tflearn.git
- As suggested in another solution tensorflow 2.0.0 does not support tflearn so I installed tensorflow==1.14.0
解决方案原地址
本文解决了一个常见的TensorFlow与tflearn兼容性问题,详细介绍了如何通过升级Python版本、卸载并重新安装特定版本的TensorFlow和tflearn来解决ModuleNotFoundError错误。
1670

被折叠的 条评论
为什么被折叠?



