生成requirements.txt
In order to facilitate the deployment of the new environment, the need to include a Python requirements.txt project file, records all dependent packages and exact version
requirements.txt can automatically generate and install command by pip
Generate requirements.txt file
cd project directory
execute pip freeze> requirements.txt
Generate requirements.txt contents of the file are as follows:
attrs==18.1.0
Automat==0.6.0
constantly==15.1.0
Django==2.1.4
django-crontab==0.7.1
djangorestframework==3.10.1
hyperlink==18.0.0
idna==2.6
incremental==17.5.0
mysqlclient==1.3.12
pymongo==3.6.1
PyMySQL==0.8.1
pytz==2019.1
six==1.11.0
Twisted==17.1.0
zope.interface==4.5.0
Installation requirements.txt dependence
pip install -r requirements.txt
pip list see the installation results