Python Venv¶
Creating a new Python venv in the directory /usr/local/logistics/Python/venv:
1. Example for django¶
Create a new virtual environment in the
venvdirectory:cd /usr/local/logistics/Python/venv python3 -m venv django
2. Activate the virtual environment¶
Command:
source django/bin/activate
3. Install the libraries¶
Install all libraries from the Master
requirements.txtto build up a new virtual environment:cp /usr/local/logistics/google-drive/Project/Development/Python/venv/requirements_master/django/requirements.txt django/ cd django pip3 install -r requirements.txt deactivate