Since various people have explained the installation method, I referred to that.
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
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!
-http://o-tomox.hatenablog.com/entry/2014/09/22/174315
Recommended Posts