The Model Card Toolkit is hosted on PyPI, and requires Python 3.6 or later.
pip install model-card-toolkit
You may need to append the --use-deprecated=legacy-resolver
flag when running
versions of pip starting with 20.3
Starting with version 0.1.4 compiling Model Card Toolkit requires Bazel>=2.0.0.
First, clone the github repo:
git clone https://github.com/tensorflow/model-card-toolkit.git
Build the pip package from source:
pip install wheel
cd model_card_toolkit
python3 setup.py sdist bdist_wheel
Finally, install your locally built package:
pip install --upgrade ./dist/*pkg.whl
If you run into issues with Model Card Toolkit installation, please
file an issue
with details on your operating system version, Python version, pip version, and
locally-installed packages. You can find your locally-installed packages with
pip freeze
).