DEV Community

Cover image for Create Python Requirement file in better way
Gaurav kushwaha
Gaurav kushwaha

Posted on

Create Python Requirement file in better way

  • Install pipreqs python library
pip3 install pipreqs
Enter fullscreen mode Exit fullscreen mode

Install

  • Run command in the project current directory for which requirements.txt required.
python -m  pipreqs.pipreqs 
Enter fullscreen mode Exit fullscreen mode

Use

😎 ## How better than pip freeze?

Pip freeze make requirements.txt of all python library install in your machine but not for the library which is used in particular projects.

Top comments (0)