huggingface使用国内镜像
设置环境变量
Linux
export HF_ENDPOINT=https://hf-mirror.com
Windows Powershell
$env:HF_ENDPOINT = "https://hf-mirror.com"
pip install 国内镜像
pip install -i https://pypi.mirrors.ustc.edu.cn/simple some-package
设置环境变量
Linux
export HF_ENDPOINT=https://hf-mirror.com
Windows Powershell
$env:HF_ENDPOINT = "https://hf-mirror.com"
pip install 国内镜像
pip install -i https://pypi.mirrors.ustc.edu.cn/simple some-package