在 ~/.pip/pip.conf 配置文件(若沒有則創建)中添加/修改以下內容:
[global] index-url = https://mirrors.xjtu.edu.cn/pypi/simple [install] trusted-host = mirrors.xjtu.edu.cn