Home >Backend Development >Python Tutorial >Graphical tutorial for installing python3.6.1 under centos6.4
This article mainly introduces the installation tutorial of python3.6.1 under centos6.4 in detail. It has certain reference value. Interested friends can refer to it.
The examples in this article are shared with you. python3.6.1 installation tutorial for your reference, the specific content is as follows
1. Install the packages required for the compilation environment
#yum install zlib-devel bzip2-devel openssl-devel ncurese-devel gcczlib
Installation successful
2. Download the source code package
#wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
3. Installation
Extract the source code package and enter the directory of the decompressed python source code package
#tar zxvf Python-3.6.1.tgz #cd Python-3.6.1
4. Compile and install
#./configure --prefix=/usr/local/python3 #make
#make install##5. Add environment variables
#vim /etc/profileAdd export PATH="$PATH:/usr/local/python3/bin" Restart and you can use it
The above is the detailed content of Graphical tutorial for installing python3.6.1 under centos6.4. For more information, please follow other related articles on the PHP Chinese website!