Problem solved, turns i had 2 tensorflow versions installed:
- When launching $python , it used 0.6 version(which didnt had contrib module)
- When launching $sudo python ,it had the latest 0.9 version and everything works as the documentation.
Posted 2008nmj
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了'module' object has no attribute 'contrib'相关的知识,希望对你有一定的参考价值。
Problem solved, turns i had 2 tensorflow versions installed:
以上是关于'module' object has no attribute 'contrib'的主要内容,如果未能解决你的问题,请参考以下文章
matplotlib显示AttributeError: 'module' object has no attribute 'verbose'
tensorflow提示出错'module' object has no attribute 'pack'
tensorflow提示出错'module' object has no attribute 'pack'
AttributeError: 'module' object has no attribute 'App'
yum--AttributeError: 'module' object has no attribute 'HTTPSHandler'