Get Python Project Libraries Using pipreqs

Learn how to get Python project libraries using pipreqs

To get the libraries used in a Python project, you can use the pipreqs tool. This tool scans your Python files and generates a requirements.txt file with the libraries used in your project.

pip install pipreqs
pipreqs /path/to/your/project --force
 
# verify the generated requirements.txt
cat requirements.txt

Written by

KarChunT

Last Updated

Sat Apr 26 2025

Tags

Python