From 1a5482d6dfae500ea11d680493c34ff512f08abd Mon Sep 17 00:00:00 2001 From: Aaron Steers Date: Fri, 26 Mar 2021 16:10:16 -0700 Subject: [PATCH] better windows python setup with pyenv --- setup/windows.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/setup/windows.md b/setup/windows.md index 2773498..f8c0083 100644 --- a/setup/windows.md +++ b/setup/windows.md @@ -47,11 +47,22 @@ The package manager reduces the time to get software installed, saving hours of 4. Install core tools: ```cmd - choco install -y choco-protocol-support chocolateygui sudo terraform vscode github-desktop - choco install -y python3 + choco install -y choco-protocol-support chocolateygui sudo terraform vscode github-desktop pyenv-win choco install -y docker-desktop ``` +5. Install Python: + + - In the previous step, you install pyenv, the Python Version manager. Now install one or more python versions and make one of them the default. + + ```cmd + pyenv install 3.8 # you'll be prompted to pick a specific patch version + pyenv install 3.8.7 # picking the latest 3.8.x + pyenv install 3.9 # you'll be prompted to pick a specific patch version + pyenv install 3.9.1 # picking the latest 3.9.x + pyenv global 3.8.7 # default to 3.8.x + ``` + - **NOTE:** See the [Troubleshooting](#troubleshooting) tips below if you run into any difficulties during this process. ## Installing additional tools