Create Python Requirement file in better way

heykush

Gaurav kushwaha

Posted on October 30, 2022

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.

šŸ’– šŸ’Ŗ šŸ™… šŸš©
heykush
Gaurav kushwaha

Posted on October 30, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related