2

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

1 Answer 1

2

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.
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you. I had 2 tensorflow versions installed too. solved.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.