pip freeze
saves all packages in the environment, including ones that you don’t use in your current project.
To generate a requirements.txt based on imports, use pipreqs
.
pip freeze
saves all packages in the environment, including ones that you don’t use in your current project.
To generate a requirements.txt based on imports, use pipreqs
.