Graphical tutorial for installing python3.6.1 under centos6.4

黄舟
Release: 2017-07-21 16:55:14
Original
1481 people have browsed it

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
Copy after login

Installation successful

2. Download the source code package


#wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
Copy after login

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
Copy after login

4. Compile and install


#./configure --prefix=/usr/local/python3
#make
Copy after login


#make install
Copy after login

##5. Add environment variables


#vim /etc/profile
Copy after login
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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template