Skip to content

Instantly share code, notes, and snippets.

@hakjoon
Last active January 4, 2018 20:16
Show Gist options
  • Save hakjoon/216be7abdb5746eb579656102b91d6e3 to your computer and use it in GitHub Desktop.
Save hakjoon/216be7abdb5746eb579656102b91d6e3 to your computer and use it in GitHub Desktop.

Developer setup

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

git

brew install git

brew install pyenv

Add pyenv init to your shell to enable shims and autocompletion. Please make sure eval "$(pyenv init -)" is placed toward the end of the shell configuration file since it manipulates PATH during the initialization.

The following command should do it for you.

echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile

Restart your shell so the path changes take effect. You can now begin using pyenv.

Install python 2.7.13 and make it the global python

pyenv install 2.7.13

pyenv global 2.7.13

Virtualenvwrapper

brew install pyenv-virtualenvwrapper

Add the virtualenvwrapper initialization to your shell.

echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n pyenv virtualenvwrapper\nfi' >> ~/.bash_profile

Restart your shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment