看了很多解决问题的博客,亲测通过更换国内安装源和设置超时时间可以解决。 在pip install XXX命令的后面加上 –default-timeout=100 -i https://pypi.tuna.tsinghua.edu.cn/simple即可。