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.
Maybe you could use: pip freeze
?
This would output all the installed packages for your given project, for reference .
Hopefully that helps!
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.