Skip to content

Instantly share code, notes, and snippets.

@sjvrijn
Created August 25, 2020 11:44
Show Gist options
  • Save sjvrijn/78b00f1b10bb5bd243d13096b4ce3737 to your computer and use it in GitHub Desktop.
Save sjvrijn/78b00f1b10bb5bd243d13096b4ce3737 to your computer and use it in GitHub Desktop.
# Python dependencies
sudo apt install build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev libffi-dev
# install curl if not already present
sudo apt instal curl
curl https://pyenv.run | bash
# add recommended lines to .bashrc and restart shell
echo '' >> ~/.bashrc
echo 'export PATH="/home/svrijn/.pyenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
exec $SHELL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment