のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

pyenv install 3.4.3

$ pyenv install 3.4.3
Downloading Python-3.4.3.tgz...
-> https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz
Installing Python-3.4.3...

BUILD FAILED (OS X 10.11.3 using python-build 20150818)

Inspect or clean up the working tree at /var/folders/d_/9f_f9cm96433rbq733jynybw0000gn/T/python-build.20160321195913.6946
Results logged to /var/folders/d_/9f_f9cm96433rbq733jynybw0000gn/T/python-build.20160321195913.6946.log

Last 10 log lines:
  File "/private/var/folders/d_/9f_f9cm96433rbq733jynybw0000gn/T/python-build.20160321195913.6946/Python-3.4.3/Lib/ensurepip/__main__.py", line 4, in <module>
    ensurepip._main()
  File "/private/var/folders/d_/9f_f9cm96433rbq733jynybw0000gn/T/python-build.20160321195913.6946/Python-3.4.3/Lib/ensurepip/__init__.py", line 209, in _main
    default_pip=args.default_pip,
  File "/private/var/folders/d_/9f_f9cm96433rbq733jynybw0000gn/T/python-build.20160321195913.6946/Python-3.4.3/Lib/ensurepip/__init__.py", line 116, in bootstrap
    _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/private/var/folders/d_/9f_f9cm96433rbq733jynybw0000gn/T/python-build.20160321195913.6946/Python-3.4.3/Lib/ensurepip/__init__.py", line 40, in _run_pip
    import pip
zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [install] Error 1
$ xcode-select --install
xcode-select: note: install requested for command line developer tools

pyenvにおけるpythonインストールエラー対処法(BUILD FAILED)