.. python_venv: 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 ``venv`` directory: .. code:: cd /usr/local/logistics/Python/venv python3 -m venv django | 2. Activate the virtual environment ----------------------------------- Command: .. code:: source django/bin/activate | 3. Install the libraries ------------------------ Install all libraries from the Master ``requirements.txt`` to build up a new virtual environment: .. code:: cp /usr/local/logistics/google-drive/Project/Development/Python/venv/requirements_master/django/requirements.txt django/ cd django pip3 install -r requirements.txt deactivate