My personal dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
dotfiles/docs/python_venv_in_cwd_nixos.md

298 B

How to setup a python virtual env under NixOS

Steps

  1. create a virtual python environment: $ nix-shell --pure -p python38Full --run "python -m venv .venv" (creates it in ./.venv/)
  2. add source ./.venv/bin/activate to .envrc ($ echo 'source ./.venv/bin/activate' > .envrc)