tfx: Can't Pip Install TFX: tried different environment setups and python/pip versions

TFX won’t install on my windows machine. It throws this exact same error for all the different standalone packages: tensorflow-data-validation, tensorflow-transform, tensorflow-model-analysis, ml-metadata, etc

Please help! I’ve been struggling with this for about 3 weeks now. I am running Anaconda with Python 3.7.4, TensorFlow 2.0, on Windows 10. I’ve tried TFX 0.14.0 and 0.15.0rc0

ERROR: Could not find a version that satisfies the requirement <component-package> (from versions: none)
ERROR: No matching distribution found for <component-package>

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (1 by maintainers)

Most upvoted comments

Same issue is there for ubuntu 18.04

Thanks @lildonpancho

I’m pasting the command I used with Anaconda, minor differences compares to Miniconda.

  1. conda create --name tfx
  2. conda install python=3.6
  3. pip3 install tfx

@lildonpancho

  1. There is a minor difference in CLI syntax between Anaconda and Miniconda. I installed Anaconda and found the command you given didn’t work. And of course, some quick Google search took me to the syntax accepted by Anaconda. Though, the conda executable part is the same between Anaconda and Miniconda. I have corrected my comment that only install tfx in pip3.
  2. Yes, when I create conda environment, it kinda activates by default. It’s more of Conda CLI usage.

I think the fact with Conda, we can freely navigate between different Python versions is a big plus.

Resolved on Ubuntu 18.04.2 LTS by upgrading pip python3 -m pip install --upgrade pip