You may use the software installed python3.6
# yum groupinstall 'Development Tools' # yum install -y ncurses-libs zlib-devel mysql-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
Installation python3.6.5
python official website to download https://www.python.org
Download the installation package is stored in / usr / local directory
# cd /usr/local # wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
Decompression:
# Takes -xf Python 3.6 . 5 . takes .xz
After extracting the new folder on the Python-3.6.5 / python3 under / usr / local
Enter the directory ···························· had to go, ha, or installation errors
# mkdir python3 # mv Python-3.6.5 python3 # cd python3/Python-3.6.5
Installation following code execution
··························· --prefix
option is to configure the installation path, after performing all resource files in the /usr/local/python3.6
path
# ./configure --prefix=/usr/local/python3 --enable-optimizations # make # make altinstall
Create a soft link
# ln -s /usr/local/python3/bin/python3 /usr/bin/python3 # ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
The last test version
Python3 # - the V
# PIP3 -V