Python setup in project sandboxes
Learned after a script failed on a missing package in the data-pipeline repo.
Before running any Python here:
- Create the virtualenv:
python3 -m venv /workspace/.venv - Upgrade the toolchain:
/workspace/.venv/bin/pip install --upgrade pip setuptools wheel - Install the usual dependencies:
/workspace/.venv/bin/pip install requests pandas pytest - Run every script with
/workspace/.venv/bin/python, never the systempython3.