Skip to content

Commit 5f7d971

Browse files
authored
Fix Pyenv for Codespaces (#23315)
Resolves: #23314
1 parent 1f1d748 commit 5f7d971

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/onCreateCommand.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
1212
source ~/.bashrc
1313

1414
# Install Python via pyenv .
15-
pyenv install 3.8:latest 3.9:latest 3.10:latest 3.11:latest
15+
pyenv install 3.8.18 3.9:latest 3.10:latest 3.11:latest
1616

1717
# Set default Python version to 3.8 .
1818
pyenv global 3.8.18
1919

2020
npm ci
2121

2222
# Create Virutal environment.
23-
pyenv exec python3.8 -m venv .venv
23+
pyenv exec python -m venv .venv
2424

2525
# Activate Virtual environment.
2626
source /workspaces/vscode-python/.venv/bin/activate

0 commit comments

Comments
 (0)