Issues with installing TFX in Google Colab (C4W3Lab2)

Hi all,

I am facing issues with installing TFX on Google Colab. I was following C4W3Lab2, and whenever I run the following command, it gives an error:

!pip install -U tfx

Error:

Looking in indexes: Simple index, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting tfx
Downloading tfx-0.23.1-py3-none-any.whl (1.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 54.6 MB/s eta 0:00:00
Collecting absl-py<0.9,>=0.7 (from tfx)
Downloading absl-py-0.8.1.tar.gz (103 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 103.2/103.2 kB 12.0 MB/s eta 0:00:00
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Preparing metadata (setup.py) … error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I should note that previous tutorials were working fine for me. I tried to troubleshoot by deleting the runtime, installing and upgrading few libraries, but with no success.

I also tried to run the previous labs, but magically the issue reappeared. It appears some updates in Google Colab now preventing installation of TFX.

Can someone please look into it?

Hello @dexcrew
There’s an ongoing issue with most of the Labs because Colab upgraded to 3.10
Will let you know once the labs are fixed. Thank you

2 Likes

Thanks Isaak! That’s what I thought.

It should be a system wide issue.

The following screenshot is from this location: TFX tutorials | TensorFlow

tfx · PyPI says that tfx 1.13.0 is compatible with python 3.8 and python 3.9

Hope this helps.