Create a requirements.txt file of packages only in the current virtualenv

suggest change

pip assists in creating requirements.txt files by providing the freeze option.

pip freeze --local > requirements.txt

In a virtualenv that can see global packages, --local omits those global packages.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents