Is there any way to output requirements.txt automatically? May 12, 2023 by Tarik Try the following command: pip freeze > requirements.txt