Python使用小教程02——使用tflearn报ModuleNotFoundError-No-module-named-tensorflow.contrib

  • Post author:
  • Post category:python


错误原因:版本原因,’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:-

  1. upgrading python to 3.6
  2. pip uninstall tflearn
  3. pip install git+https://github.com/tflearn/tflearn.git
  4. As suggested in another solution tensorflow 2.0.0 does not support tflearn so I installed tensorflow==1.14.0


    解决方案原地址



版权声明:本文为puffdoudou原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。