How to upgrade Python 3.6 version on Linux CentOS

888u

Last update at :2024-07-01,Edit by888u

Since the software environment requires a higher version of python, the default CentOS6 is version 2.6 and CentOS7 is version 2.7. By the way, I would like to mention here that some netizens mentioned that the Seafile cloud disk one-click package cannot be installed in CentOS6 because the minimum default version is Python 2.7. And in this article, a software debugged by Snail requires Python 3 or above, so I am going to install Python 3.6.

Note: It is recommended that netizens who are not familiar with us should not install it directly in the production environment. You can install it in the test environment first to see if it is feasible.

First, install the necessary environment packages

yum -y groupinstall development zlib zlib-devel

Second, download and install python3.6

wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xztar xJf Python-3.6.0.tar.xzcd Python-3.6.0./configuremakemake install

Third, check whether it is successful

which python3python3 -V

Fourth, create soft links

cd /usr/binmv python python.backupln -s /usr/local/bin/python3 /usr/bin/python

Then we restart the machine and see if the current python is 3.6

In this way, python can be upgraded and installed to version 3.6.

Recommended site searches: vip domain name, free proxy ip, rental server website registration information query, Internet cafe ip address query, website registration domain name query, free external network server, ip search, US virtual host, Korean server rental,

How to upgrade Python 3.6 version on Linux CentOS

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码