How do you save a list of all packages installed in a virtual environment to a requirements.txt file? The > character stands for a command prompt.

Questions & AnswersCategory: PythonHow do you save a list of all packages installed in a virtual environment to a requirements.txt file? The > character stands for a command prompt.
Geek Boy Staff asked 2 years ago

How do you save a list of all packages installed in a virtual environment to a requirements.txt file? The > character stands for a command prompt.

a. > pip freeze | requirements.txt
b. > pip freeze < requirements.txt
c. > pip packages > requirements.txt
d. > pip freeze > requirements.txt