From 209ceee8765c4dec78f0b20c1dc88d794b6ba4f3 Mon Sep 17 00:00:00 2001 From: echo $USER | sed 's/cp/c p/ <2423679+ericpardee@users.noreply.github.com> Date: Tue, 26 Mar 2019 16:41:33 -0700 Subject: [PATCH] virtualenv: add python version example (#2851) --- pages/common/virtualenv.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/virtualenv.md b/pages/common/virtualenv.md index 97d5deef5e..944dd67af6 100644 --- a/pages/common/virtualenv.md +++ b/pages/common/virtualenv.md @@ -11,6 +11,10 @@ `virtualenv --prompt={{prompt_prefix}} {{path/to/venv}}` +- Use a different version of Python with virtualenv: + +`virtualenv --python={{path/to/pythonbin}} {{path/to/venv}}` + - Start (select) the environment: `source {{path/to/venv}}/bin/activate`