Nonsense not much to say directly on the steps
- wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2rc1.tgz
Enter https://www.python.org/ftp/python/, select the appropriate Python version link, directly wget download
- Decompression PYTHON-3.6.2RC1
Tar xzf python-3.6.2rc1.tgz
- Go to the Python directory to compile
CD PYTHON-3.6.2RC1
- Yum-y Install GCC gcc-c++
- ./configure
- Make a && make install
After the installation is complete, back up the original shortcuts,
Mv/usr/bin/python/usr/bin/python2.bak
Then create a soft link to the python3.6
Ln-s/usr/local/bin/python3/usr/bin/python
If you do not know the Python3 installation directory, which Python3 to find out the installation directory of Python3
Test if Python3 is set to succeed.
Python-v
If the Python 3.6.2rc1 is shown to be successful, if unsuccessful, repeat the steps above to troubleshoot
At this point, the CentOS installation Python3 successfully.
Centos 6.5 Installation python3.6