When the relocation project, the need to export the current environment dependencies, and then deploy the project to the server installation dependencies. We can use the following command is executed, the dependent packages to export to requirements.txt file. Generating requirements.txt following redirect command, window the system can also be used.
pip freeze > requirements.txt
Installation requirements.txt dependence
pip install -r requirements.txt
New computer, a new environment no longer attached to a Python package, commands to get two, a backup, a mounting
Transfer from https://www.cnblogs.com/zhzhang/p/11190291.html