Skip to content

Instantly share code, notes, and snippets.

@kuguma
Created July 2, 2018 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuguma/8417c15dd0d72801903e123b247e3a19 to your computer and use it in GitHub Desktop.
Save kuguma/8417c15dd0d72801903e123b247e3a19 to your computer and use it in GitHub Desktop.
Pyenv setup
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
source ~/.bashrc
pyenv install 3.6.5
pyenv rehash
pyenv global 3.6.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment