For more information about NLP, see references.
Introduction
The Python project must contain a requirements.txt file to record all dependent packages and their exact version numbers. To deploy the new environment.
The main statement is as follows:
Pip freeze> requirements.txt # generate requirements.txt pip install-r requirements.txt # install dependencies from requirements.txt
Supported statement
-R base.txt # all packages under base.txt pypinyin = 0.12.0 # specified version (the most common method) django-querycount> = 0.5.0 # later than a certain version of django-debug-toolbar> = 1.3.1, <= 1.3.3 # Version range: ipython # default (no replacement exists, the latest version does not exist)
Third-party tool generation
Pip freeze will include unnecessary packages and packages dependent on some packages ~
Pipreqs automatically analyzes the packages referenced in the project. The Mysql package is ignored when the Django project is automatically built, and the version is strange. In addition, an error is reported when a 404 error occurs during online search.