Skip to content

Instantly share code, notes, and snippets.

@JayBazuzi
Last active January 4, 2025 22:37
Show Gist options
  • Save JayBazuzi/1c79b55be1b35b4b1ea34dd770cd0a9f to your computer and use it in GitHub Desktop.
Save JayBazuzi/1c79b55be1b35b4b1ea34dd770cd0a9f to your computer and use it in GitHub Desktop.
#! /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