Last active
January 4, 2025 22:37
-
-
Save JayBazuzi/1c79b55be1b35b4b1ea34dd770cd0a9f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
set -euo pipefail | |
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
export PYENV_ROOT="${script_dir}/.pyenv" | |
export PATH="${PYENV_ROOT}/bin:${PATH}" | |
if [ -d "${PYENV_ROOT}" ]; then | |
pyenv update | |
else | |
curl -fsSL https://pyenv.run | bash | |
fi | |
pyenv install --skip-existing | |
pyenv virtualenv .venv | |
. .pyenv/versions/.venv/bin/activate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment