Normal virtualenv
setup:
python -m venv .venv
source .venv/bin/activate
pip install --upgrade -r requirements.txt
pip install -e .
To initialize virtualenv
instead run:
nix-shell -p python3 --command "python -m venv .venv --copies"
After installing all dependencies patch the binaries with:
nix shell github:GuillaumeDesforges/fix-python
fix-python --venv .venv
Note: this may take a few minutes.
See NixOS Wiki for details.