How to get a list of installed modules in Python (freeze-like list)

in «tip» by Michael Beard
Tags: , , , , ,

At the command prompt, run this command: pip freeze to get a list that can be put into a text file (need to figure out what to call it and how to use it) that is like a freeze list in JavaScript. You can also use pip list for a slightly different formatted list.

Here is a good source: pip freeze with good examples of how to use it. More importantly, it shows you how to generate a requirements list:

pip freeze > requirements.txt

and then install it in a different environment from the list generated:

pip install -r requirements.txt