Skip to content

Instantly share code, notes, and snippets.

@ericbaranowski
Created December 14, 2018 14:08
Show Gist options
  • Save ericbaranowski/7291bb53de338932fc9d22bfa3f5251d to your computer and use it in GitHub Desktop.
Save ericbaranowski/7291bb53de338932fc9d22bfa3f5251d to your computer and use it in GitHub Desktop.
#!/bin/bash
git clone --recursive https://github.com/pyenv/pyenv ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshenv
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshenv
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshenv
source ~/.zshenv
pyenv install 3.6.7
pyenv local 3.6.7 && pyenv shell 3.6.7 && pyenv global 3.6.7
pyenv rehash
pip install --upgrade pip setuptools wheel
pip install -IU virtualenv
virtualenv --system-site-packages -p python3 venv
source venv/bin/activate
pip install -IU -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment