Skip to content

Instantly share code, notes, and snippets.

@mfrata
Created May 25, 2018 18:10
Show Gist options
  • Save mfrata/1cb1c1b94bf88f29a32d3c2e6f008b98 to your computer and use it in GitHub Desktop.
Save mfrata/1cb1c1b94bf88f29a32d3c2e6f008b98 to your computer and use it in GitHub Desktop.
Instaling pyenv
# Dependecies
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev git
# Install
sudo curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
# Export variables to bashrc
echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
# Update bashrc
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment