If Python 3.5.0 installation fails on Mac

environment

Installation

Try

% pyenv install 3.5.0
Downloading readline-6.3.tar.gz...
-> https://yyuu.github.io/pythons/56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43
Installing readline-6.3...
Installed readline-6.3 to $HOME/.anyenv/envs/pyenv/versions/3.5.0

Downloading Python-3.5.0.tgz...
-> https://yyuu.github.io/pythons/584e3d5a02692ca52fce505e68ecd77248a6f2c99adf9db144a39087336b0fe0
Installing Python-3.5.0...

BUILD FAILED (OS X 10.11.1 using python-build 20151124-5-gebd6c1a)

Inspect or clean up the working tree at /var/folders/jw/qq4kz4hd17lbgv__hgym0z_c0000gp/T/python-build.20151202010623.52953
Results logged to /var/folders/jw/qq4kz4hd17lbgv__hgym0z_c0000gp/T/python-build.20151202010623.52953.log

Last 10 log lines:
  File "/private/var/folders/jw/qq4kz4hd17lbgv__hgym0z_c0000gp/T/python-build.20151202010623.52953/Python-3.5.0/Lib/ensurepip/__main__.py", line 4, in <module>
    ensurepip._main()
  File "/private/var/folders/jw/qq4kz4hd17lbgv__hgym0z_c0000gp/T/python-build.20151202010623.52953/Python-3.5.0/Lib/ensurepip/__init__.py", line 209, in _main
    default_pip=args.default_pip,
  File "/private/var/folders/jw/qq4kz4hd17lbgv__hgym0z_c0000gp/T/python-build.20151202010623.52953/Python-3.5.0/Lib/ensurepip/__init__.py", line 116, in bootstrap
    _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/private/var/folders/jw/qq4kz4hd17lbgv__hgym0z_c0000gp/T/python-build.20151202010623.52953/Python-3.5.0/Lib/ensurepip/__init__.py", line 40, in _run_pip
    import pip
zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [install] Error 1

If you fail

% xcode-select --install

Install again challenge

% pyenv install 3.5.0
Downloading readline-6.3.tar.gz...
-> https://yyuu.github.io/pythons/56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43
Installing readline-6.3...
Installed readline-6.3 to $HOME/.anyenv/envs/pyenv/versions/3.5.0

Downloading Python-3.5.0.tgz...
-> https://yyuu.github.io/pythons/584e3d5a02692ca52fce505e68ecd77248a6f2c99adf9db144a39087336b0fe0
Installing Python-3.5.0...
Installed Python-3.5.0 to $HOME/.anyenv/envs/pyenv/versions/3.5.0

success

% pyenv global 3.5.0
% pyenv versions
  system
  2.7.10
* 3.5.0 (set by $HOME/.anyenv/envs/pyenv/version)

Recommended Posts

If Python 3.5.0 installation fails on Mac
If python on mac goes missing
python on mac
Install Python on Mac
Install Python 3 on Mac
numba installation on mac
Install Python 3.4 on Mac
Install pygame on python3.4 on mac
Apache installation fails on CentOS 8.2
Python installation (Mac edition) (old)
Fastest Python installation on Windows
Handling of python on mac
Install pandas 0.14 on python3.4 [on Mac]
Notes on installing Python on Mac
Python 3 series installation for mac
What to do if SciPy installation fails on CentOS
Building a Python environment on Mac
Create a Python environment on Mac (2017/4)
Python installation
Python memo Anaconda installation (Mac only)
Install python3 on Mac (El Capitan)
Environment construction of python3.8 on mac
What to do if `pip install matplotlib` fails on Mac
Python installation
Steps to install python3 on mac
Call C / C ++ from Python on Mac
Update Python on Mac from 2 to 3
Using multiple versions of Python on Mac OS X (1) Multiple Ver installation
I want to know if you install Python on Mac ・ Iroha
Introducing MAMP + Python + SQLAlchemy (Mysql-Python) on Mac
Create a python environment on your Mac
Follow active applications on Mac with Python
How to erase Python 2.x on Mac.
Installation of psutil fails on MacOS Cataline
Notes on building Python and pyenv on Mac
Build Python environment with Anaconda on Mac
Video processing using Python + OpenCV on Mac
Python if statement
Python on Windows
twitter on python3
Python installation (Windows)
[Python] if statement
Python on Windbg
Python installation 2020 (macOS)
Python3.4 installation notes
Build a Python environment on Mac (Mountain Lion)
Run Zookeeper x python (kazoo) on Mac OS X
Build a Python development environment on your Mac
Try working with Mongo in Python on Mac
Put Python 2.7.x on Mac OSX 10.15.5 with pyenv
Zsh and prezto installation work log on Mac
Shpinx (Python documentation builder) on Mac OS X
Try importing MLB data on Mac and Python
Install Tensorflow on Mac
Python conda on cygwin
Install python on WSL
Install pyenv on mac
python openCV installation (memo)
Install Python3 on Mac and build environment [Definitive Edition]
Python basic course (2 Python installation)
Reinforcement learning 1 Python installation