1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| [iyunv@ipython ~]# cd .pyenv/plugins/python-build/share/python-build/
[iyunv@ipython python-build]# vim 3.5.2
#require_gcc
install_package "openssl-1.0.2g" "https://www.openssl.org/source/openssl-1.0.2g.tar.gz#b784b1b3907ce39abf4098702dade6365522a253ad1552e267a9a0e89594aa33" mac_openssl --if has_broken_mac_openssl
install_package "readline-6.3" "https://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
if has_tar_xz_support; then
install_package "Python-3.5.2" "~/.pyenv/cache/Python-3.5.2.tar.gz" ldflags_dirs standard verify_py35 ensurepip
else
install_package "Python-3.5.2" "~/.pyenv/cache/Python-3.5.2.tar.gz" ldflags_dirs standard verify_py35 ensurepip
fi
[iyunv@ipython ~]# pyenv versions
system
* 3.5.2 (set by /root/.python-version)
[iyunv@ipython ~]#
[iyunv@ipython ~]# pyenv local 3.5.2
[iyunv@ipython ~]#
[iyunv@ipython ~]# python -V
Python 3.5.2
[iyunv@ipython ~]# python
Python 3.5.2 (default, Nov 5 2016, 20:24:14)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.
|