Node/npm lists the dependencies you install in a project in the dependencies key in your package.json file. But since python doesn't have a similar file I was exploring how to do the same for a python project.

I came across the convention of a requirements.txt file. This file lists all the packages that are installed in your current environment.

To generate the file you use:

pip freeze > requirements.txt