1、--设置超时时间 pip install --default-timeout=1000 包名 2、--改变国内资源 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 包名