Skip to content

Instantly share code, notes, and snippets.

@NickCrew
Created January 2, 2022 01:51
Show Gist options
  • Save NickCrew/86e4195c44a1cb6b2b6a694ff032c7bf to your computer and use it in GitHub Desktop.
Save NickCrew/86e4195c44a1cb6b2b6a694ff032c7bf to your computer and use it in GitHub Desktop.
Setup python dev environment on macos
#!/usr/bin/env zsh
if [[ -z $ZDOTDIR ]]; then
ZDOTDIR=$HOME
fi
if ! command -v brew 1>/dev/null; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
brew install \
pyenv \
pyenv-virtualenv \
pyenv-virtualenvwrapper \
node \
macvim
echo 'eval "$(pyenv init - )"' >> $ZDOTDIR/.zshrc
echo 'eval "$(pyenv virtualenv-init -)"' >> $ZDOTDIR/.zshrc
npm install --global yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment