1. Save the current package and version information to requirements.txt
pip freeze > requirements.txt
2. Use the pip command to install the corresponding packages in batches
pip install -r requirements.txt
1. Save the current package and version information to requirements.txt
pip freeze > requirements.txt
2. Use the pip command to install the corresponding packages in batches
pip install -r requirements.txt