Just contact Python, see a lot of controversy python2,python3, I do not know which is good, because I read the book author suggested learning Python3, so I also no matter who good or bad, just follow the author began it. CentOS Pre-installed is Python2 so need two versions at the same time, here using source installation, Python2 known Yum will use, others do not know.
1, download Python source package, www.python.org
2, upload to the virtual machine, direct, wget can also
3. Tar xvf python-3.6.0a1.tar.xz #解压
4, mkdir-p/applications/python #把所有源码安装的软件都放在/applications
CD PYTHON-3.6.10A1
./configure--prefix=/applications/python
Make && make install
mv/usr/bin/python/usr/bin/python2.6
Ln-s/applications/python/bin/python3.6/usr/bin/python
Execute python after completion is Python3
This article is from the "Learning Records" blog, so be sure to keep this source http://674564591.blog.51cto.com/12568986/1974265
CentOS Installation Python3