Pycharm导入所有安装包到requirements.txt文件中 在pycharm的终端命令行输入下边的命令,但是必须确保位于项目的根目录下 pip freeze > requirements.txt