Python Language pip: PyPI Package Manager Create a requirements.txt file of packages only in the current virtualenv

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

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

pip freeze --local > requirements.txt

The --local parameter will only output a list of packages and versions that are installed locally to a virtualenv. Global packages will not be listed.



Got any Python Language Question?