-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Installation on Colab.research.google.com? #35
Comments
Hi Junpeng, that's a great question! The install works for me just running "!pip3 install tfp-nightly" -- I believe the '--user' flag isn't necessary in colab since everything is run in a sandbox by default. However, once installed, I'm seeing the import itself still fail with "ImportError: cannot import name 'seed_stream'" from tensorflow.contrib.distributions.python.ops, which seems to indicate that Colab is preferring its own version of TensorFlow over the nightly package which TFP depends on. We're certainly interested in making sure TFP works from Colab; we'll engage with the Colab team internally to work this out, and keep you posted. If you or anyone else discovers a workaround in the meantime, feel free to share! |
For what it's worth, using a Python2.7 colab seems to work fine for me, running "!pip install tfp-nightly", so that's an (admittedly imperfect) potential workaround. |
After some discussion with the Colab team: there's a TF release bug that's causing Python 3 colabs to pull in an outdated version of (in the slightly longer term we hope to include TFP in the default colab install, but this should wait until we have a release that depends on stable Tensorflow). |
It looks like the Colabs now update with more up-to-date TFP packages. This one can probably be closed. |
On Google Colab Python 2 without GPU, I run
Then in
On Google Colab Python 3 without GPU, I do the same thing. |
FYI: TFP releases are now installed by default in Colab, so Closing this issue; feel free to reopen if you run into problems. |
I am trying to install tensorflow-probability with the following script on a Colab notebook:
!pip3 install -q --user --upgrade tfp-nightly import tensorflow_probability as tfp
However it doesnt work:
Am I doing it correctly? Is it possible to install it on Colab?
The text was updated successfully, but these errors were encountered: