tfx: TFX cannot be installed in Colab since Colab runs on Python 3.10

If the bug is related to a specific library below, please raise an issue in the respective repo directly:

TensorFlow Data Validation Repo

TensorFlow Model Analysis Repo

TensorFlow Transform Repo

TensorFlow Serving Repo

System information

  • Have I specified the code to reproduce the issue (Yes, No): yes !pip install tfx==1.13.0
  • Environment in which the code is executed (e.g., Local(Linux/MacOS/Windows), Interactive Notebook, Google Cloud, etc): colab
  • TensorFlow version:
  • TFX Version: 1.13
  • Python version:
  • Python dependencies (from pip freeze output):

Describe the current behavior TFX requires python up to 3.9, while colab runs on Python 3.10. Describe the expected behavior Be able to install TFX on colab. Standalone code to reproduce the issue !pip install tfx==1.13.0

Providing a bare minimum test case or step(s) to reproduce the problem will greatly help us to debug the issue. If possible, please share a link to Colab/Jupyter/any notebook.

Name of your Organization (Optional) Tinyclues / Splio

Other info / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 3
  • Comments: 20 (12 by maintainers)

Most upvoted comments

As a short term fix, this page has instructions for reverting to Python 3.8.3:

https://www.tensorflow.org/tfx/tutorials

@tanguycdls,

Python 3.10 support is introduced in TFX 1.14.0 Release. Simply pip install tfx in colab should install TFX without any issues in Colab. Please let us know if you have any issues. Thank you!

@AnuarTB, @tanguycdls,

As per this issue #colabtools/3572, the the fallback runtime version is available until mid-May.

@tanguycdls,

Meanwhile we are upgrading python support to 3.10, you can try using fallback runtime version to run the TFX tutorials. To enable that, once colab runtime is connected, You can use key combination (Ctrl + Shift + P) and type “Use fallback runtime version” and select it to use Python 3.9.16 version runtime. This is allow you to run TFX examples on fallback runtime. Thanks.

We are actively working on migration. Unfortunately we cannot give definite ETA, but right now it is our most prioritized item to migrate TFX to Python 3.10.