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 probability not import into google colab #1847

Open
Prithibee13 opened this issue Oct 10, 2024 · 0 comments
Open

Tensorflow probability not import into google colab #1847

Prithibee13 opened this issue Oct 10, 2024 · 0 comments

Comments

@Prithibee13
Copy link

Tensorflow probability not imported in my google colab. showing these error. how can i overcome this?

!pip install --upgrade tensorflow-probability
import tensorflow_probability


ModuleNotFoundError Traceback (most recent call last)
in <cell line: 1>()
----> 1 import tensorflow_probability

12 frames
/usr/local/lib/python3.10/dist-packages/tensorflow_probability/python/internal/tf_keras.py in
28 import tf_keras.api._v1.keras as v1
29 else:
---> 30 from tensorflow.compat.v2.keras import *
31 from tensorflow.compat.v2.keras import internal
32 import tensorflow.compat.v1 as tf1

ModuleNotFoundError: No module named 'tensorflow.compat.v2.keras'


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

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

1 participant