From 040304870b4e1ffa9f023902e6f4791cbf0a74ba Mon Sep 17 00:00:00 2001 From: Anthony Kim Date: Wed, 1 May 2024 13:23:38 -0700 Subject: [PATCH] fix codespace pyenv --- scripts/onCreateCommand.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/onCreateCommand.sh b/scripts/onCreateCommand.sh index 05ffe64a8c0b..3d473d1ee172 100644 --- a/scripts/onCreateCommand.sh +++ b/scripts/onCreateCommand.sh @@ -12,7 +12,7 @@ command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" source ~/.bashrc # Install Python via pyenv . -pyenv install 3.8:latest 3.9:latest 3.10:latest 3.11:latest +pyenv install 3.8.18 3.9:latest 3.10:latest 3.11:latest # Set default Python version to 3.8 . pyenv global 3.8.18 @@ -20,7 +20,7 @@ pyenv global 3.8.18 npm ci # Create Virutal environment. -pyenv exec python3.8 -m venv .venv +pyenv exec python -m venv .venv # Activate Virtual environment. source /workspaces/vscode-python/.venv/bin/activate