Skip to content

Instantly share code, notes, and snippets.

@djohnkang
Last active March 24, 2019 06:57
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 djohnkang/062e1b5c37df7d4d5b4e503315481282 to your computer and use it in GitHub Desktop.
Save djohnkang/062e1b5c37df7d4d5b4e503315481282 to your computer and use it in GitHub Desktop.
Installing pyenv on C9 workspace
#!/bin/sh
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc
. ~/.bashrc
pyenv install 3.6.7
pyenv global 3.6.7
python -V
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
. ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment