📜  如何根据导入生成 Python 项目的需求 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:57.726000             🧑  作者: Mango

代码示例1
# How To Generate The Requirements Of Your Python Project Based On Your Imports
# Step1: first install one module--> 
pip install pipreqs
#Step2: after installing above module. goto project directory 
#where every you code and import files existed then run the below command.
pipreqs --force
#step3: after running above command it will generate requirements.txt file 
#it having only module which you are imported corrent code only.