zurutech/gans-from-theory-to-production

Even after installing 1.13.1, Tf stays at 2.0 version

Closed this issue · 2 comments


AttributeError Traceback (most recent call last)
in
5
6 # Import tfgan from contrib
----> 7 tfgan = tf.contrib.gan

AttributeError: module 'tensorflow' has no attribute 'contrib'

! pip install tensorflow==1.13.1
Requirement already satisfied: tensorflow==1.13.1 in /usr/local/lib/python3.7/dist-packages (1.13.1)

Probably you should try to remote every tensorflow installation first and then instal only the package you need.

You can find every "tf" package by looking at the output of:

pip list |grep tf

That will show the nightly packages (that are in the format tf-*) and also have a look at the output of

pip list |grep tensor

that contains all the stable packages.

Force the removal of every tensorflow package and retry.

Closing for inactivity.