Setup python -m venv nameofthedir virtualenv nameofthedir source nameofthedir/bin/activate To deactivate deactivate