Skip to content

Instantly share code, notes, and snippets.

@dragolabs
Last active August 30, 2019 15:30
Show Gist options
  • Save dragolabs/8b77285026c7e011637133f07ec9284c to your computer and use it in GitHub Desktop.
Save dragolabs/8b77285026c7e011637133f07ec9284c to your computer and use it in GitHub Desktop.
#!/bin/sh
# install pyenv
sudo apt-get update
sudo apt-get install make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
cd ~ || exit
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
git clone git://github.com/pyenv/pyenv-doctor.git ~/.pyenv/plugins/pyenv-doctor
git clone https://github.com/pyenv/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
echo 'export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile
. ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment