}

Pyenv Index Page 1

macOS Mojave pyenv: Install failed, "zlib not available"

If you are having the error

Pyenv Index Page 1

SOLVED: OSX or macOS Sierra, error while installing python with python: zipimport.ZipImportError: can't decompress data; zlib not available

Read how to solve the zipimport.ZipImportError: can't decompress data; zlib not available error while using pyenv to install a new python version. For OSX our solution was to use export CFLAGS="-I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include" and export LDFLAGS="-L$(brew --prefix openssl)/lib" environment variables while installing python with pyenv.