Skip to content

Instantly share code, notes, and snippets.

@punchouty
Created May 11, 2021 13:23
Show Gist options
  • Save punchouty/a7622ad2bf218ae3d28c644a597eb4af to your computer and use it in GitHub Desktop.
Save punchouty/a7622ad2bf218ae3d28c644a597eb4af to your computer and use it in GitHub Desktop.
Python help for Mac

Useful Commands

pyenv versions
pyenv global 3.7.3
pyenv local 3.7.3

Python Installation

pyenv install --list
pyenv install --list | grep " 3\.[678]"
pyenv install 3.8.10
CFLAGS="-I$(brew --prefix openssl)/include -I$(brew --prefix bzip2)/include -I$(brew --prefix readline)/include -I$(xcrun --show-sdk-path)/usr/include" LDFLAGS="-L$(brew --prefix openssl)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix zlib)/lib -L$(brew --prefix bzip2)/lib" pyenv install --patch 3.8.10 < <(curl -sSL https://github.com/python/cpython/commit/8ea6353.patch\?full_index\=1)

Install pyenv

https://chamikakasun.medium.com/how-to-manage-multiple-python-versions-in-macos-2021-guide-f86ef81095a6

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