Python3 mounted on CentOS 7

No official source packages installed Python package for Linux, you need to download the source package to be compiled. Can download the latest version of Python, Python download page, click on the corresponding version Python3.xx Download, under the new Files page, select Source release, select gzipped source tarball or XZ compressed package source tarball compressed mode, I chose tgz compression. Python3.6.5 Download Source package wget https://www.python.org/ftp/python/3.6.5/Python-3.6. 5.tgz decompression tar -xzvf Python-3.6.5.tgz mounted reliance yum install zlib zlib-devel libffi-devel -y compiler cd Python-3.6.5 ./configure --prefix = / usr / local / src / python3. 6 --enable-optimizations make make install --enable-optimizations is to optimize the options (LTO, PGO etc.) after adding this flag compiled, around 10% of the performance optimization, but this will be a significant increase in compile time. Will be installed in /usr/local/python3.6, executable file python3.6 in the under / bin and / usr / local / bin, if you do a soft connection to python3, in the implementation of python3 of error. Use source installation ius source # dependent epel yum install epel-release yum install naming https://centos7.iuscommunity.org/ius-release.rpm install Python IUS package for the software version number + name + minor version number + u, Python package called python36u.
---------------------
copyright reserved by the authors.
Commercial reprint please contact the author authorized, non-commercial reprint please indicate the source.
Author: Zhao Lei
source address: https: //www.cnblogs.com/zzhaolei/p/11067817.html
source: blog Garden cnblogs
© Copyright: This article is a blogger original article, reproduced, please attach Bowen link!

Guess you like

Origin www.cnblogs.com/fengff/p/11411894.html