安装依赖pip install -r requirement.txt更换 pip 源自国内镜像,在 pip install 后面添加 -i https://pypi.tuna.tsinghua.edu.cn/simple ,然后在后面加上所要安装的包。