mbp01:android m_fujii$ pyenv install 2.7.10
Downloading Python-2.7.10.tgz...
-> https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
Installing Python-2.7.10...
patching file ./Lib/site.py
ERROR: The Python zlib extension was not compiled. Missing the zlib?
Please consult to the Wiki page to fix the problem.
https://github.com/yyuu/pyenv/wiki/Common-build-problems
BUILD FAILED (OS X 10.12 using python-build 20150818)
Inspect or clean up the working tree at /var/folders/d_/9f_f9cm96433rbq733jynybw0000gn/T/python-build.20161016063413.24826
Results logged to /var/folders/d_/9f_f9cm96433rbq733jynybw0000gn/T/python-build.20161016063413.24826.log
Last 10 log lines:
rm -f /Users/m_fujii/.pyenv/versions/2.7.10/share/man/man1/python.1
(cd /Users/m_fujii/.pyenv/versions/2.7.10/share/man/man1; ln -s python2.1 python.1)
if test "xno" != "xno" ; then \
case no in \
upgrade) ensurepip="--upgrade" ;; \
install|*) ensurepip="" ;; \
esac; \
./python.exe -E -m ensurepip \
$ensurepip --root=/ ; \
fi