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.
Bash
pipinstallpipreqs
pipreqs/path/to/your/project--force
# verify the generated requirements.txtcatrequirements.txt