Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows: Get all modules/packages used by a python project

I have an application and now I would like to know what packages/modules are necessary if someone else wants to install it. How can I get all the python modules/packages that are needed for a specific project?

Important Note: This question was already answered for Linux. They suggested pipreqs, which seems like a great solution, however it does not to support Windows.

My Python version is 3.6.4.

I am working on windows 10.

like image 946
User12547645 Avatar asked Aug 31 '25 02:08

User12547645


1 Answers

Have you verified that pipreqs does not work? I use Windows 10 (build 17134.285), Python 3.7.0, and pipreqs 0.4.9; and I have successfully generated requirements files using pipreqs.

C:\l\Projects\MicrosoftGraph>pipreqs .\sampleGraphAuthPython
INFO: Successfully saved requirements file in .\sampleGraphAuthPython\requirements.txt

C:\l\Projects\MicrosoftGraph>type .\sampleGraphAuthPython\requirements.txt
bottle==0.12.13
adal==1.1.0
Flask_OAuthlib==0.9.5
requests==2.19.1
Flask==1.0.2
requests_oauthlib==1.0.0
urllib3==1.23
like image 161
LisaJ Avatar answered Sep 02 '25 15:09

LisaJ