From 7da70b4f313611299f6d09037f74dd8e87e12d48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E4=B8=B0?= Date: Tue, 9 Aug 2016 15:38:21 +0800 Subject: [PATCH] pyenv: add page (#995) --- pages/common/pyenv.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/common/pyenv.md diff --git a/pages/common/pyenv.md b/pages/common/pyenv.md new file mode 100644 index 0000000000..5aa0e54b19 --- /dev/null +++ b/pages/common/pyenv.md @@ -0,0 +1,27 @@ +# pyenv + +> Switch between multiple versions of Python easily. + +- List all available commands: + +`pyenv commands` + +- List all Python versions under the ${PYENV_ROOT}/versions directory: + +`pyenv versions` + +- Install a Python version under the ${PYENV_ROOT}/versions directory: + +`pyenv install {{2.7.10}}` + +- Uninstall a Python version under the ${PYENV_ROOT}/versions directory: + +`pyenv uninstall {{2.7.10}}` + +- Set Python version to be used globally in the current machine: + +`pyenv global {{2.7.10}}` + +- Set Python version to be used in the current directory and all directories below it: + +`pyenv local {{2.7.10}}`