更换国内安装源和设置超时时间可以解决 pip install xxx --default-timeout=100 -i https://pypi.tuna.tsinghua.edu.cn/simple 即可 安装源参考 超时时间参考