Detailed steps to install python3.7 on CentOS6.5

Detailed steps to install python3.7 on CentOS6.5

1. Download Python 3

wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz

2. Decompression

[root@mycentos ~]# tar -xzvf Python-3.7.0.tgz

First create a compilation directory:

[root@mycentos ~]# mkdir /usr/local/python3

Python 3.7 version requires a new package libffi-devel. After installing this package, compile and install it again.

[root@mycentos ~]# yum install -y libffi-devel

Then compile and install:

[root@mycentos ~]# cd Python-3.7.0
[root@mycentos ~]# ./configure --prefix=/usr/local/python3
[root@mycentos ~]# make
[root@mycentos ~]# make install

Create a soft link:

[root@mycentos ~]# ln -s /usr/local/python3/bin/python3 /usr/bin/python3

View version:

[root@mycentos ~]# python3 -V

Python 3.7.0

Installation Complete!

The above are all the knowledge points and detailed steps introduced this time. Thank you for your support of 123WORDPRESS.COM.

You may also be interested in:
  • Centos8 (minimum installation) tutorial on how to install Python3.8+pip
  • Install the latest python3.8 under Centos7
  • Tutorial on installing and uninstalling python3 under Centos7
  • Detailed tutorial on installing Python3 on CentOS7
  • Solution for not being able to use pip after installing python3.7.1 on centos6.5
  • Installation of python2.7.10 under Linux system (CentOS)
  • Tutorial analysis on installing Python3 under CentOS7

<<:  Summary of the use of special operators in MySql

>>:  JavaScript canvas to achieve meteor effects

Recommend

Correct way to load fonts in Vue.js

Table of contents Declare fonts with font-face co...

How to convert mysql bin-log log files to sql files

View mysqlbinlog version mysqlbinlog -V [--versio...

Some details about semicolons in JavaScript

Preface Semicolons in JavaScript are optional, an...

Ubuntu 20.04 Chinese input method installation steps

This article installs Google Input Method. In fac...

Centos7 installation of FFmpeg audio/video tool simple document

ffmpeg is a very powerful audio and video process...

Detailed explanation of the use of mysql explain (analysis index)

EXPLAIN shows how MySQL uses indexes to process s...

How to implement one-click deployment of nfs in linux

Server Information Management server: m01 172.16....

How to split and merge multiple values ​​in a single field in MySQL

Multiple values ​​combined display Now we have th...

What are the image file formats and how to choose

1. Which three formats? They are: gif, jpg, and pn...

Detailed explanation of Linux command file overwrite and file append

1. The difference between the command > and &g...

Vue Element-ui implements tree control node adding icon detailed explanation

Table of contents 1. Rendering 2. Bind data and a...

Hexadecimal color codes (full)

Red and pink, and their hexadecimal codes. #99003...

Tutorial on how to quickly deploy a Nebula Graph cluster using Docker swarm

1. Introduction This article describes how to use...

Vue implements a simple magnifying glass effect

This article example shares the specific code of ...