Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tensorflow Version #4

Open
duongkstn opened this issue Apr 23, 2020 · 3 comments
Open

tensorflow Version #4

duongkstn opened this issue Apr 23, 2020 · 3 comments

Comments

@duongkstn
Copy link

Which exactly tensorflow and tensorflow-XXX (tensor2tensor, tensorboard,.... ) version is used to run properly ?
I can not run because of conflicts, so please make it clear.

@tranvohuy
Copy link

tranvohuy commented May 25, 2020

For this colab https://colab.research.google.com/github/vietai/dab/blob/master/colab/Interactive_Back_Translation.ipynb, try

!pip install -U tensor2tensor==1.15.0
!pip install -U tensorflow==1.15.0 

instead of

!pip install -q -U tensor2tensor

like in the original colab note.
Also try to run colab with Python 3 (not python 2)
It worked for me.

@NeverInAsh
Copy link

ImportError Traceback (most recent call last)
in ()
3
4 import os
----> 5 from tensor2tensor.bin import t2t_decoder
6 from tensor2tensor.models import transformer
7 import tensorflow as tf

9 frames
/usr/local/lib/python3.6/dist-packages/tensorflow_datasets/core/tf_compat.py in ensure_tf_install()
57 if tf_version < min_tf_version:
58 raise ImportError(
---> 59 "This version of TensorFlow Datasets requires TensorFlow "
60 f"version >= {MIN_TF_VERSION}; Detected an installation of version "
61 f"{tf.version}. Please upgrade TensorFlow to proceed."

ImportError: This version of TensorFlow Datasets requires TensorFlow version >= 2.1.0; Detected an installation of version 1.15.0. Please upgrade TensorFlow to proceed.


@NguyenNamUET
Copy link

Try this
!pip install tensorflow-datasets==3.2.1
!pip install -U tensor2tensor==1.15.0
!pip install -U tensorflow==1.15.0
in colab Sentiment_Analysis_+_Back_translation.ipynb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants