Install this version:
emerge -a =dev-python/huggingface-hub-2.1.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/huggingface-hub-2.1.1
Or alternatively:
emerge --autounmask-write -a =dev-python/huggingface-hub-2.1.1
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1 pypi
DESCRIPTION="Client library to download and publish models, datasets and other repos on the huggingface.co hub"
HOMEPAGE="https://github.com/huggingface/huggingface_hub"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE=""
RDEPEND="
>=dev-python/click-8.4.2[${PYTHON_USEDEP}]
<dev-python/click-9.0.0[${PYTHON_USEDEP}]
>=dev-python/filelock-3.10.0[${PYTHON_USEDEP}]
>=dev-python/fsspec-2023.5.0[${PYTHON_USEDEP}]
>=dev-python/httpx2-2.0.0[${PYTHON_USEDEP}]
<dev-python/httpx2-3[${PYTHON_USEDEP}]
>=dev-python/packaging-20.9[${PYTHON_USEDEP}]
>=dev-python/pyyaml-5.1[${PYTHON_USEDEP}]
>=dev-python/tomli-1.1.0[${PYTHON_USEDEP}]
>=dev-python/tqdm-4.42.1[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-4.1.0[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
>=dev-python/click-8.4.2[] <dev-python/click-9.0.0[] >=dev-python/filelock-3.10.0[] >=dev-python/fsspec-2023.5.0[] >=dev-python/httpx2-2.0.0[] <dev-python/httpx2-3[] >=dev-python/packaging-20.9[] >=dev-python/pyyaml-5.1[] >=dev-python/tomli-1.1.0[] >=dev-python/tqdm-4.42.1[] >=dev-python/typing-extensions-4.1.0[]