[PYTHON] When "zipimport.ZipImportError: can't decompress data; zlib not available" appears when installing the version of pyenv

pyenv install x.x.x

When I did, I got the following error.

zipimport.ZipImportError: can't decompress data; zlib not available

When I run the following command in bash, it's OK.

bash
CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install 3.7.2

Recommended Posts

When "zipimport.ZipImportError: can't decompress data; zlib not available" appears when installing the version of pyenv
If pyenv shows can't decompress data; zlib not available
Check when the version does not switch with pyenv
Raise the version of pyenv itself
Do not change the order of columns when concatenating pandas data frames.
It seems that the version of pyflakes is not the latest when flake8 is installed
Not being aware of the contents of the data in python
The story of when I was addicted to Caused by SSLError ("Can't connect to HTTPS URL because the SSL module is not available.")