Skip to content

Instantly share code, notes, and snippets.

@ladyrassilon
Last active December 18, 2015 16:13
Show Gist options
  • Save ladyrassilon/9c0f2e5315429c962375 to your computer and use it in GitHub Desktop.
Save ladyrassilon/9c0f2e5315429c962375 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo 'cloning the repo'
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git ~/.pyenv/plugins/pyenv-virtualenvwrapper
echo 'adding the magic to your bash profile'
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo 'export TMPDIR=~/.tmp' >> ~/.bash_profile
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
echo 'reloading the bash profile'
source ~/.bash_profile
~/.pyenv/bin/pyenv install 2.7.10
~/.pyenv/bin/pyenv global 2.7.10
~/.pyenv/shims/pip install --upgrade pip
~/.pyenv/bin/pyenv virtualenvwrapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment