Skip to content

Instantly share code, notes, and snippets.

@s-wool
Created February 10, 2016 14:05
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 s-wool/b33d736e9c6304ca8cb2 to your computer and use it in GitHub Desktop.
Save s-wool/b33d736e9c6304ca8cb2 to your computer and use it in GitHub Desktop.
vagrant pyenv
#!/bin/bash
sudo yum clean all
sudo yum groupinstall -y "Development Tools"
sudo yum install -y bzip2-devel openssl-devel readline-devel sqlite-devel
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
source ~/.bash_profile
pyenv install 2.7.10
pyenv install 3.4.4
pyenv install 3.5.1
pyenv global 2.7.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment