Skip to content

Instantly share code, notes, and snippets.

@zoultrex
Created January 29, 2023 21:09
Show Gist options
  • Save zoultrex/c624e8140223840b7b0b680886b52006 to your computer and use it in GitHub Desktop.
Save zoultrex/c624e8140223840b7b0b680886b52006 to your computer and use it in GitHub Desktop.
install pyenv on ubuntu 18.04 that only worked for GCP
#install pyenv on ubuntu 18.04
sudo apt update
curl https://pyenv.run | bash
export PATH="$HOME/.pyenv/bin:$PATH" && eval "$(pyenv init --path)" && echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc
exec $SHELL
pyenv --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment