Bulk export and import dependencies

Into a virtual environment where the (need to export the environmental package) in

 

Go to the directory of the project (storage location for the exported package):

pip freeze > requirement.txt

 

In the new environment (need to install the python package in the environment):

pip install -r requirement.txt

 

Note: The export package is not to find the project here, but the all-party package python virtual environment projects used to pull in the target file, which means that this document may contain items less than the package.

Guess you like

Origin www.cnblogs.com/peng-zhao/p/11269563.html