Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Add support for apple silicon #264

@yingding

Description

@yingding

I tried to install model-card-toolkit with python 3.10 and the following packages on my m1 max MBP.

tensorflow-macos==2.11.0
tensorflow-metal==0.7.1
pandas==1.5.3
scikit-learn==1.2.2
model-card-toolkit

got the following error

The conflict is caused by:
    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
    tensorflow-macos 2.11.0 depends on absl-py>=1.0.0
    model-card-toolkit 1.1.0 depends on absl-py<0.11 and >=0.9
    model-card-toolkit 1.0.0 depends on tensorflow-data-validation<0.27.0 and >=0.26.0
    model-card-toolkit 0.1.3 depends on tensorflow-data-validation<0.27.0 and >=0.26.0
    model-card-toolkit 0.1.2 depends on tensorflow-data-validation<0.27.0 and >=0.26.0
    tensorflow-macos 2.11.0 depends on absl-py>=1.0.0
    model-card-toolkit 0.1.1 depends on absl-py<0.9 and >=0.7
    tensorflow-macos 2.11.0 depends on absl-py>=1.0.0
    model-card-toolkit 0.1.0 depends on absl-py<0.9 and >=0.7

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/topics/dependency-resolution/#dealing-with-dependency-conflicts

Is there anyway to get this to work on apple M1/M2 silicon?

Metadata

Metadata

Assignees

No one assigned

    Labels

    installationInstallation and dependency problems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions