Skip to content

Commit

Permalink
Fix Pyenv for Codespaces (#23315)
Browse files Browse the repository at this point in the history
Resolves: #23314
  • Loading branch information
anthonykim1 authored May 1, 2024
1 parent 1f1d748 commit 5f7d971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/onCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ 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

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
Expand Down

0 comments on commit 5f7d971

Please sign in to comment.