Skip to content

Instantly share code, notes, and snippets.

@yucer
Last active May 14, 2023 06:29
Show Gist options
  • Save yucer/9d7d1bc15770b609fa5439fad9e24c7d to your computer and use it in GitHub Desktop.
Save yucer/9d7d1bc15770b609fa5439fad9e24c7d to your computer and use it in GitHub Desktop.
install pyenv ubuntu 20.10
#!/bin/bash
# install pyenv dependencies
sudo apt-get install git make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev libffi-dev curl
# install pyenv
curl https://pyenv.run | bash
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment