$pyenv install 3.7.2
このコマンドを実行
下のようなエラーで動かない
python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.2.tar.xz...
-> https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
Installing Python-3.7.2...
python-build: use readline from homebrew
BUILD FAILED (OS X 10.14.4 using python-build 20180424)
Inspect or clean up the working tree at /var/folders/b5/0jpmsmg91x724hd4ysr87hpc0000gn/T/python-build.20190411013759.18342
Results logged to /var/folders/b5/0jpmsmg91x724hd4ysr87hpc0000gn/T/python-build.20190411013759.18342.log
Last 10 log lines:
File "/private/var/folders/b5/0jpmsmg91x724hd4ysr87hpc0000gn/T/python-build.20190411013759.18342/Python-3.7.2/Lib/ensurepip/main.py", line 5, in <module>
sys.exit(ensurepip._main())
File "/private/var/folders/b5/0jpmsmg91x724hd4ysr87hpc0000gn/T/python-build.20190411013759.18342/Python-3.7.2/Lib/ensurepip/init.py", line 204, in _main
default_pip=args.default_pip,
File "/private/var/folders/b5/0jpmsmg91x724hd4ysr87hpc0000gn/T/python-build.20190411013759.18342/Python-3.7.2/Lib/ensurepip/init.py", line 117, in _bootstrap
return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
File "/private/var/folders/b5/0jpmsmg91x724hd4ysr87hpc0000gn/T/python-build.20190411013759.18342/Python-3.7.2/Lib/ensurepip/init.py", line 27, in _run_pip
import pip._internal
zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [install] Error 1