1

I am new at machine learning, I am using Jupyter notebook. I am trying to install TensorFlow 1.14.0 by using the following code:

!pip install imageai
!pip uninstall -y tensorflow
!pip install tensorflow-gpu==1.14.0
import tensorflow as tf
print(tf.__version__)`

and I am getting this error: module 'tensorflow' has no attribute 'version' any thoughts?

Thank you

1 Answer 1

4

I had this problem, and installing tensorflow==1.14.0 alongside tensorflow-gpu==1.14.0 fixed it:

!pip uninstall -y tensorflow
!pip install tensorflow==1.14.0
!pip install tensorflow-gpu==1.14.0
import tensorflow as tf
print(tf.__version__)
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.