mkdir /tmp/python-venv-demo cd /tmp/python-venv-demo type python python -m venv .venv . .venv/bin/activate type python touch requirements.txt pip install -r requirements.txt python -c 'print("hello world")' deactivate type python