From ed725992ba5f3ba86f3a3121be1cdab0d03eff7a Mon Sep 17 00:00:00 2001 From: Melle Date: Wed, 19 Sep 2018 21:03:44 +0200 Subject: [PATCH] Minor fix for virtualenv example in nix-shell Closes #43737 Based on suggestion mentioned in https://github.com/NixOS/nixpkgs/issues/39558#issuecomment-395429328 --- doc/languages-frameworks/python.section.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md index 5eabb866654ef..a83daf9774d05 100644 --- a/doc/languages-frameworks/python.section.md +++ b/doc/languages-frameworks/python.section.md @@ -997,6 +997,7 @@ stdenv.mkDerivation { SOURCE_DATE_EPOCH=$(date +%s) virtualenv --no-setuptools venv export PATH=$PWD/venv/bin:$PATH + export PYTHONPATH=venv/lib/python2.7/site-packages/:$PYTHONPATH pip install -r requirements.txt ''; }