按照该文档解决即可
https://github.com/huggingface/huggingface_hub/issues/1079
具体如下:
1、确保环境已将安装huggingface-cli
2、版本需要旧版,pip install huggingface_hub==0.20.1
3、再按如下执行
# Taken from https://stackoverflow.com/a/62151306
echo "export PATH=\"`python3 -m site --user-base`/bin:\$PATH\"" >> ~/.bashrc
source ~/.bashrc