model-card-toolkit icon indicating copy to clipboard operation
model-card-toolkit copied to clipboard

Unable to install model-card-toolkit in Colab

Open swsachith opened this issue 1 year ago • 1 comments

Expected Behavior

First cell of both example notebooks: https://colab.research.google.com/github/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/documentation/examples/Standalone_Model_Card_Toolkit_Demo.ipynb https://colab.research.google.com/github/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/documentation/examples/Scikit_Learn_Model_Card_Toolkit_Demo.ipynb

fails to install the model-card-toolkit package.

Actual Behavior

fails to install the toolkit.

Steps to Reproduce the Problem

  1. Run the first cells of both notebooks on colab.

Error attached below.

Specifications

  • Version: latest
  • Platform: colab

ERROR: Cannot install model-card-toolkit==1.0.0, model-card-toolkit==1.1.0, model-card-toolkit==1.2.0, model-card-toolkit==1.3.0, model-card-toolkit==1.3.1, model-card-toolkit==1.3.2 and model-card-toolkit==2.0.0 because these package versions have conflicting dependencies.

The conflict is caused by: model-card-toolkit 2.0.0 depends on tensorflow-data-validation<2.0.0 and >=1.5.0 model-card-toolkit 1.3.2 depends on ml-metadata<1.6.0 and >=1.5.0 model-card-toolkit 1.3.1 depends on ml-metadata<1.6.0 and >=1.5.0 model-card-toolkit 1.3.0 depends on ml-metadata<1.6.0 and >=1.5.0 model-card-toolkit 1.2.0 depends on ml-metadata<1.6.0 and >=1.5.0 model-card-toolkit 1.1.0 depends on ml-metadata<1.3.0 and >=1.2.0 model-card-toolkit 1.0.0 depends on ml-metadata<0.27.0 and >=0.26.0

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

swsachith avatar Jun 09 '23 20:06 swsachith