Skip to content Skip to sidebar Skip to footer

Tensorflow 'module' Object Has No Attribute 'contrib'

I installed tensorflow(on python 2.7,debian linux) using the pip method as shown in official documentation: https://www.tensorflow.org/versions/r0.9/get_started/os_setup.html#pip-i

Solution 1:

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.

Post a Comment for "Tensorflow 'module' Object Has No Attribute 'contrib'"