Home  >  Article  >  Backend Development  >  Use Python to generate the project’s requirements.txt file

Use Python to generate the project’s requirements.txt file

高洛峰
高洛峰Original
2017-03-09 09:38:202299browse

pip freeze

The requirements.txt file it generates contains a complete list of the current environment, including irrelevant dependency packages.

pipreqs

pip install pipreqs
pipreqs --force 

Only contains packages of project imports, the inclusion list is not very complete

pigar

pip install pigar

The output information is more detailed than pipgreqs

pigar -c requirements.txt

                                                               

The above is the detailed content of Use Python to generate the project’s requirements.txt file. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn