Skip to content

Instantly share code, notes, and snippets.

@anacunha
Last active April 23, 2021 15:57
Show Gist options
  • Save anacunha/03831d38c37369f6efde68cc5e05debd to your computer and use it in GitHub Desktop.
Save anacunha/03831d38c37369f6efde68cc5e05debd to your computer and use it in GitHub Desktop.
Python macOS

Python macOS

brew install pyenv

pyenv install 3.9.4
pyenv global 3.9.4
pyenv version

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

brew install pipx
pipx ensurepath

pipx install virtualenv

Virtualenv

virtualenv <env>
source .<env>/bin/activate

References

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