Python project will be deployed to the new server (virtualenv tool for environmental transport)

Python project will be deployed to the new server (virtualenv tool for environmental transport)

# Exported from the computer developed pip list to requirements.txt file
pip freeze> requirements.txt
on # another new server is installed inside the virtual environment project dependencies
Note: Before installing the need to re-create a new virtual environment
python -m venv env_name
or --no-Site-Packages Standard Package virtualenv - Python = python3 Venv
Venv virtual environment file folder, usually named venv (user-defined). --no-site-packages said they did not add third-party database system installed inside the python
after performing
PIP Uninstall -ry requirements.txt
PIP install -r requirements.txt

Guess you like

Origin www.cnblogs.com/jeshy/p/11955839.html
Recommended