This article is mainly for you to introduce the centos6.4 under the python3.6.1 installation tutorial, with a certain reference value, interested in small partners can refer to
The example of this article for everyone to share the python3.6.1 installation tutorial, for your reference, the specific content as follows
1. Install the required package for compiling the environment
#yum Install zlib-devel bzip2-devel openssl-devel ncurese-devel gcczlib
Installation Successful
2. Download the source package
#wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
3. Installation
Unpack the source package into the extracted Python source package directory
#tar ZXVF PYTHON-3.6.1.TGZ#CD Python-3.6.1
4. Compiling the installation
#./configure--prefix=/usr/local/python3#make
#make Install
5. Add Environment variables
#vim/etc/profile
Add Export path= "$PATH:/usr/local/python3/bin"
Restart it and you can use it.