tensorflow 'module' object has no attribute 'contrib'

Luis Leal

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-installation

Tested succesfully the installation as indicated by the installation ,but when doing the tutorial : https://www.tensorflow.org/versions/r0.9/tutorials/tflearn/index.html#construct-a-deep-neural-network-classifier

After importing tensorflow correctly , when trying the line:

training_set = tf.contrib.learn.datasets.base.load_csv(filename=IRIS_TRAINING, target_dtype=np.int)

Im getting the error : tensorflow 'module' object has no attribute 'contrib'

Does anybody knows that can be wrong?

Thank you

Luis Leal

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.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Module 'tensorflow' has no attribute 'contrib'

From Java

tensorflow:AttributeError: 'module' object has no attribute 'mul'

From Dev

TensorFlow, "'module' object has no attribute 'placeholder'"

From Dev

tensorflow:AttributeError: 'module' object has no attribute 'mul'

From Dev

Tensorflow AttributeError: 'module' object has no attribute 'deprecated'

From Dev

Tensorflow Slim: 'module' object has no attribute 'sum_of_squares'

From Dev

Tensorflow import error AttributeError: 'module' object has no attribute 'Exporter'

From Java

module 'tensorflow' has no attribute 'logging'

From Dev

Custom Module - Object Has No Attribute

From Dev

AttributeError: 'module' object has no attribute

From Dev

'module' object has no attribute 'Serial'

From Dev

'module' object has no attribute 'DataFrame'

From Dev

AttributeError: 'module' object has no attribute

From Dev

'module' object has no attribute 'GeoSQLCompiler'

From Dev

AttributeError: 'module' object has no attribute

From Dev

module object has no attribute oauth

From Dev

'module' object has no attribute 'get'?

From Dev

module' object has no attribute 'SelectDateWidget'

From Dev

'module' object has no attribute 'GeoSQLCompiler'

From Dev

'module' object has no attribute 'cut'

From Dev

'module' object has no attribute 'shortcuts'

From Dev

'module' object has no attribute 'get'?

From Dev

'module' object has no attribute 'TK'

From Dev

While running TensorFlow's classify_image, getting AttributeError: 'module' object has no attribute 'gfile'

From Dev

TensorFlow: AttributeError: 'Tensor' object has no attribute 'shape'

From Dev

TensorFlow: AttributeError: 'Tensor' object has no attribute 'shape'

From Dev

Tensorflow: AttributeError: 'tuple' object has no attribute 'dtype'

From Java

Tensorflow 2.0 - AttributeError: module 'tensorflow' has no attribute 'Session'

From Dev

Tensorflow 2.0 - AttributeError: module 'tensorflow' has no attribute 'Session'

Related Related

  1. 1

    Module 'tensorflow' has no attribute 'contrib'

  2. 2

    tensorflow:AttributeError: 'module' object has no attribute 'mul'

  3. 3

    TensorFlow, "'module' object has no attribute 'placeholder'"

  4. 4

    tensorflow:AttributeError: 'module' object has no attribute 'mul'

  5. 5

    Tensorflow AttributeError: 'module' object has no attribute 'deprecated'

  6. 6

    Tensorflow Slim: 'module' object has no attribute 'sum_of_squares'

  7. 7

    Tensorflow import error AttributeError: 'module' object has no attribute 'Exporter'

  8. 8

    module 'tensorflow' has no attribute 'logging'

  9. 9

    Custom Module - Object Has No Attribute

  10. 10

    AttributeError: 'module' object has no attribute

  11. 11

    'module' object has no attribute 'Serial'

  12. 12

    'module' object has no attribute 'DataFrame'

  13. 13

    AttributeError: 'module' object has no attribute

  14. 14

    'module' object has no attribute 'GeoSQLCompiler'

  15. 15

    AttributeError: 'module' object has no attribute

  16. 16

    module object has no attribute oauth

  17. 17

    'module' object has no attribute 'get'?

  18. 18

    module' object has no attribute 'SelectDateWidget'

  19. 19

    'module' object has no attribute 'GeoSQLCompiler'

  20. 20

    'module' object has no attribute 'cut'

  21. 21

    'module' object has no attribute 'shortcuts'

  22. 22

    'module' object has no attribute 'get'?

  23. 23

    'module' object has no attribute 'TK'

  24. 24

    While running TensorFlow's classify_image, getting AttributeError: 'module' object has no attribute 'gfile'

  25. 25

    TensorFlow: AttributeError: 'Tensor' object has no attribute 'shape'

  26. 26

    TensorFlow: AttributeError: 'Tensor' object has no attribute 'shape'

  27. 27

    Tensorflow: AttributeError: 'tuple' object has no attribute 'dtype'

  28. 28

    Tensorflow 2.0 - AttributeError: module 'tensorflow' has no attribute 'Session'

  29. 29

    Tensorflow 2.0 - AttributeError: module 'tensorflow' has no attribute 'Session'

HotTag

Archive