1, pyenv Installation
Address Https://github.com/yyuu/pyenv-installer
Curl-l Https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | Bash
and remove these three lines from.bashrc
Export path= "~/.pyenv/bin: $PATH" eval "$ (pyenv init-)" eval "$ (pyenv virtualenv-init-)"
2. Install Python
[[email protected] ~]# pyenv Install 3.5.2 installation Python3.5.2 version
The default process is slow, and the workaround is to download the Python3.5.2 version below
Put it in the ~/.pyenv/cache directory. Modify the ~/.pyenv/plugins/python-build/share/python-build/3.5.2 file
[[email protected] ~]# cd .pyenv/plugins/python-build/share/python-build/[[email protected] python-build]# vim 3.5.2#require_gccinstall_package "openssl-1.0.2g" " https://www.openssl.org/source/openssl-1.0.2g.tar.gz# B784b1b3907ce39abf4098702dade6365522a253ad1552e267a9a0e89594aa33 " mac_openssl --if has_broken_ mac_opensslinstall_package "readline-6.3" "https://ftpmirror.gnu.org/readline/readline-6.3.tar.gz# 56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43 " standard --if has_broken_mac_ readlineif has_tar_xz_support; then install_package "Python-3.5.2" "~/.pyenv/ Cache/python-3.5.2.tar.gz " ldflags_dirs standard verify_py35 ensurepipelse install_package "Python-3.5.2" "~/.pyenv/cache/python-3.5.2.tar.gz" ldflags_dirs standard verify_py35 ensurepipfi[[email protected] ~]# pyenv versions system* 3.5.2 (set by /root/.python-version) [[email protected] ~]# [[email protected] ~]# pyenv local 3.5.2[[email protected] ~ ]# [[email protected] ~]# python -vpython 3.5.2[[email protected] ~]# python Python 3.5.2 (default, nov 5 2016, 20:24:14)  [GCC 4.4.7 20120313 (red hat 4.4.7-16)] on linuxtype "Help", " Copyright ", " credits " or " License " for more information.
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/89/D0/wKioL1gepCiCPPXeAAAbbhTjQ_o358.png "title=" 1.png " alt= "Wkiol1gepcicppxeaaabbhtjq_o358.png"/>
3, Installation Ipython
[Email protected] ~]# mkdir ~/.pip[[email protected]. pip]# Cat pip.conf [global]timeout = 6000index-url = Http://mirrors . Aliyun.com/pypi/simple/trusted-host = mirrors.aliyun.com[[email protected] ~]# pip install--upgrade pip[[email Protected] ~]# pip install ipython[[email protected] ~]# Ipython
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/89/D3/wKiom1geos3y0ugHAABKKOVehlg529.png "title=" 1.png " alt= "Wkiom1geos3y0ughaabkkovehlg529.png"/>
4, Installation Jupyter
[[Email protected] ~]# pip install Jupyter
[Email protected] ~]# Jupyter notebook--ip=172.16.80.128
Open Browser Access test
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/89/D3/wKiom1geozGw_QzZAAC7ZAAQ4R0052.png "title=" 1.png " alt= "Wkiom1geozgw_qzzaac7zaaq4r0052.png"/>
5, Pycharm installation configuration process is skipped, simple as follows
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/89/D0/wKioL1geo5nRafdiAACqb7pO28k841.png "title=" 1.png " alt= "Wkiol1geo5nrafdiaacqb7po28k841.png"/>
This article from "Thick tak" blog, declined reprint!
Python Various development environment construction