确保本地开发环境,和线上一致性

1.导出当前解释器的模块
pip3 freeze > requirements.txt

2.将这个文件requirements.txt,上传至服务器,在新的虚拟环境中安装
pip3 install -r requirements.txt

相关文章: