tensorflow 'module' object has no attribute 'contrib'

10,809

Problem solved, turns i had 2 tensorflow versions installed:

  1. When launching $python , it used 0.6 version(which didnt had contrib module)
  2. When launching $sudo python ,it had the latest 0.9 version and everything works as the documentation.
Share:
10,809
Luis Leal
Author by

Luis Leal

Im a software and computer science engineer with experience developing software(back end primarily but not limited) including desktop,web, mobile apps. Im specialized in data having in my skillset: Machine Learning Data mining Artifical intelligence Software Engineering Big Data(hadoop, spark, etc) Business Intelligence/data warehousing Digital electronics Java,Python, R, .NET

Updated on June 04, 2022

Comments