title: pyenv zlib error on MacOS:
body: <h1>My goal</h1>
  
  <p>I am trying to install Python 2.7.5 and 3.6.5 side-by-side on my MBP with with pyenv. </p>
  
  <h1><code>pyenv</code> Installation</h1>
  
  <p>Following <a href="https://stackoverflow.com/questions/18671253/how-can-i-use-homebrew-to-install-both-python-2-and-3-on-mac">How can I use Homebrew to install both Python 2 and 3 on Mac?</a> , I tried:</p>
  
  <pre><code>$ pyenv install 3.6.5
  </code></pre>
  
  <p>Which erred with:</p>
  
  <pre><code>python-build: use openssl from homebrew
  python-build: use readline from homebrew
  Downloading Python-3.6.5.tar.xz...
  -&gt; https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
  Installing Python-3.6.5...
  python-build: use readline from homebrew
  
  BUILD FAILED (OS X 10.13.4 using python-build 20160602)
  
  Inspect or clean up the working tree at /var/folders/d0/t8d3jjp161g2dyrd4k67ypc80000gn/T/python-build.20180426091253.34709
  Results logged to /var/folders/d0/t8d3jjp161g2dyrd4k67ypc80000gn/T/python-build.20180426091253.34709.log
  
  Last 10 log lines:
    File "/private/var/folders/d0/t8d3jjp161g2dyrd4k67ypc80000gn/T/python-build.20180426091253.34709/Python-3.6.5/Lib/ensurepip/__main__.py", line 5, in &lt;module&gt;
      sys.exit(ensurepip._main())
    File "/private/var/folders/d0/t8d3jjp161g2dyrd4k67ypc80000gn/T/python-build.20180426091253.34709/Python-3.6.5/Lib/ensurepip/__init__.py", line 204, in _main
      default_pip=args.default_pip,
    File "/private/var/folders/d0/t8d3jjp161g2dyrd4k67ypc80000gn/T/python-build.20180426091253.34709/Python-3.6.5/Lib/ensurepip/__init__.py", line 117, in _bootstrap
      return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
    File "/private/var/folders/d0/t8d3jjp161g2dyrd4k67ypc80000gn/T/python-build.20180426091253.34709/Python-3.6.5/Lib/ensurepip/__init__.py", line 27, in _run_pip
      import pip
  zipimport.ZipImportError: can't decompress data; zlib not available
  make: *** [install] Error 1
  </code></pre>
  
  <h1>What have I tried</h1>
  
  <ul>
  <li>Installing zlib: <code>brew install zlib</code></li>
  </ul>
  
  <h1>My question</h1>
  
  <p>How can I install multiple Python environment with <code>pyenv</code> on MBP?</p>