1

我需要帮助安装 tfx,我刚刚运行了这个命令:

pip install -U tfx

但我得到这个错误:

ERROR: Cannot install tfx==0.13.0, tfx==0.14.0, tfx==0.15.0, tfx==0.21.0, tfx==0.21.1, tfx==0.21.2, tfx==0.21.3, tfx==0.21.4, tfx==0.21.5, tfx==0.22.0, tfx==0.22.1, tfx==0.22.2, tfx==0.23.0 and tfx==0.23.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    tfx 0.23.1 depends on tensorflow-data-validation<0.24 and >=0.23.1
    tfx 0.23.0 depends on tensorflow-data-validation<0.24 and >=0.23
    tfx 0.22.2 depends on pyarrow<0.17 and >=0.16
    tfx 0.22.1 depends on pyarrow<0.17 and >=0.16
    tfx 0.22.0 depends on pyarrow<0.17 and >=0.16
    tfx 0.21.5 depends on ml-metadata<0.22 and >=0.21.2
    tfx 0.21.4 depends on ml-metadata<0.22 and >=0.21.2
    tfx 0.21.3 depends on ml-metadata<0.22 and >=0.21.2
    tfx 0.21.2 depends on tfx-bsl<0.22 and >=0.21.3
    tfx 0.21.1 depends on ml-metadata<0.22 and >=0.21.2
    tfx 0.21.0 depends on tfx-bsl<0.22 and >=0.21
    tfx 0.15.0 depends on tensorflow-data-validation<0.16 and >=0.15
    tfx 0.14.0 depends on tensorflow-data-validation<0.15 and >=0.14.1
    tfx 0.13.0 depends on tensorflow-data-validation<0.14 and >=0.13.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

我不知道为什么以及如何解决它。我也试过没有-U标签,但没有工作。

在此之前,非常感谢您的帮助,我很感激。

4

0 回答 0