meta data for this page

pyenv and MacPorts

I've recently switched from HomeBrew to MacPorts for a number of reasons. MacPorts doesn't have a version of pyenv included, so it needs to be installed manually.

I kept running into issues where pyenv doctor would fail because of missing libraries/dependencies. The following fixed it:

sudo port install libffi libxml2  openssl readline sqlite3 xz zlib
export CPPFLAGS="-I/opt/local/include $CPPFLAGS"
export LDFLAGS="-L/opt/local/lib $LDFLAGS"


Enter your comment. Wiki syntax is allowed:
I D V X​ J