Skip to content

Instantly share code, notes, and snippets.

@shrkw
Last active December 19, 2019 04:33
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 shrkw/492129ab35e92a0f80b9f5c0084257a1 to your computer and use it in GitHub Desktop.
Save shrkw/492129ab35e92a0f80b9f5c0084257a1 to your computer and use it in GitHub Desktop.
Install pyenv, specific version pythons and pipenv on macOS

Install pyenv, specific version pythons and pipenv on macOS

pyenv and pythons

VERSION=3.8.0
brew install pyenv
brew install zlib sqlite
export LDFLAGS="${LDFLAGS} -L/usr/local/opt/zlib/lib"
export CPPFLAGS="${CPPFLAGS} -I/usr/local/opt/zlib/include"
export LDFLAGS="${LDFLAGS} -L/usr/local/opt/sqlite/lib"
export CPPFLAGS="${CPPFLAGS} -I/usr/local/opt/sqlite/include"
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH} /usr/local/opt/zlib/lib/pkgconfig"
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH} /usr/local/opt/sqlite/lib/pkgconfig"
pyenv install ${VERSION}

pipenv

brew install pipenv
PIPENV_VENV_IN_PROJECT=true pipenv --python=$(pyenv root)/versions/${VERSION}/bin/python install
pipenv install --dev mypy rope flake8 pytest
pipenv install --dev --pre black
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment