How to deal with python installation error in pyenv (BUILD FAILED)

Install pyenv

Since various people have explained the installation method, I referred to that.

Installation error

Contents

After installing pyenv, passing through the path, and finally trying to install python, I gladly ran $ pyenv install 3.4.3 and the following error occurred.

$ pyenv install 3.4.3 

Downloading Python-3.4.3.tgz...

-> https://yyuu.github.io/pythons/4281ff86778db65892c05151d5de738d

Installing Python-3.4.3...

ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

Please consult to the Wiki page to fix the problem.

https://github.com/yyuu/pyenv/wiki/Common-build-problems

BUILD FAILED (OS X 10.10.3 using python-build 20141028)

Inspect or clean up the working tree at /var/folders/yy/9bhhz0216dz7vbz5_1ffbl5m0000gn/T/python-build.20150610141204.31062

Results logged to /var/folders/yy/9bhhz0216dz7vbz5_1ffbl5m0000gn/T/python-build.20150610141204.31062.log

Last 10 log lines:

(cd /Users/[User name]/.pyenv/versions/3.4.3/share/man/man1; ln -s python3.4.1 python3.1)
if test "xupgrade" != "xno"  ; then \
case upgrade in \
upgrade) ensurepip="--upgrade" ;; \
install|*) ensurepip="" ;; \
esac; \
./python.exe -E -m ensurepip \
$ensurepip --root=/ ; \
fi
Ignoring ensurepip failure: pip 6.0.8 requires SSL/TLS

approach

I solved it by installing xcode command line developer tools. I don't think the original person will get this error. Specifically, execute the following in the terminal $ xcode-select --install

Then, the installation confirmation window will appear. Follow the instructions to install. Then try the installation again.

$ pyenv install 3.4.3   

Downloading Python-3.4.3.tgz...

-> https://yyuu.github.io/pythons/4281ff86778db65892c05151d5de738d

Installing Python-3.4.3...

Installed Python-3.4.3 to /Users/[User name]/.pyenv/versions/3.4.3

No error has occurred. Let's display the list of installed python.

$ pyenv versions
* system (set by /Users/[User name]/.pyenv/version)
  3.4.3

I was able to install it successfully!

reference

-http://o-tomox.hatenablog.com/entry/2014/09/22/174315

Recommended Posts

How to deal with python installation error in pyenv (BUILD FAILED)
How to use tkinter with python in pyenv
How to deal with pyenv initialization failure in fish 3.1.0
[Python] How to deal with pandas read_html read error
How to deal with Executing transaction: failed in Anaconda
[AWS] How to deal with "Invalid codepoint" error in CloudSearch
How to work with BigQuery in Python
[Python] How to deal with module errors
How to use python put in pyenv on macOS with PyCall
How to deal with memory leaks in matplotlib.pyplot
[REAPER] How to play with Reascript in Python
How to deal with run-time errors in subprocess.call
How to deal with OAuth2 error when using Google APIs from Python
How to deal with SSL error when connecting to S3 with boto of Python
How to deal with old Python versions in Cloud9 made by others
How to convert / restore a string with [] in python
How to do hash calculation with salt in Python
Explain in detail how to make sounds with python
How to run tests in bulk with Python unittest
How to deal with "No module named'〇〇'" error in Jupyter Notebook | Install with! Pip!
How to develop in Python
How to install Python2.7 python3.5 with pyenv (on RHEL5 CentOS5) (2016 Nov)
How to extract any appointment in Google Calendar with Python
How to build a python2.7 series development environment with Vagrant
For beginners, how to deal with common errors in keras
How to log in to AtCoder with Python and submit automatically
[Python] How to do PCA in Python
Python: How to use async with
How to collect images in Python
How to use SQLite in Python
How to deal with imbalanced data
How to deal with imbalanced data
How to get started with Python
How to deal with DistributionNotFound errors
Unable to install Python with pyenv
How to use Mysql in python
Use Python in pyenv with NeoVim
How to wrap C in Python
How to use ChemSpider in Python
How to use FTP with Python
How to use PubChem in Python
How to calculate date with python
How to handle Japanese in Python
How to install Anaconda with pyenv
How to not escape Japanese when dealing with json in python
How to create a heatmap with an arbitrary domain in Python
How to deal with errors when installing Python and pip with choco
How to display legend marks in one with Python 2D plot
How to build Python and Jupyter execution environment with VS Code
How to calculate "xx time" in one shot with Python timedelta
[Introduction to Python] How to use class in Python?
How to suppress display error in matplotlib
Try logging in to qiita with Python
How to access environment variables in Python
Method to build Python environment in Xcode 6
How to dynamically define variables in Python
How to do R chartr () in Python
[Itertools.permutations] How to put permutations in Python
How to get a stacktrace in python
How to deal with enum compatibility errors
How to display multiplication table in python