Home  >  Article  >  Backend Development  >  Graphical tutorial for installing python3.6.1 under centos6.4

Graphical tutorial for installing python3.6.1 under centos6.4

黄舟
黄舟Original
2017-07-21 16:55:141481browse

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/profile

Add 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn