Install Python3.4 on CentOS source code
1. Install Python dependency packages on CentOS
Yum groupinstall "Development tools"
Yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
2. Download and compile the Python3.4 source code package
Wget https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz
Tar xf Python-3.4.1.tgz
Cd Python-3.4.1
./Configure -- prefix =/usr/local -- enable-shared
Make
Make install
3. Configure the library before running Python:
Echo/usr/local/lib>/etc/ld. so. conf. d/local. conf
Ldconfig
4. Run the demo:
Python3 -- version
Python 3.4.1
5. Delete the library required for compiling Python.
Yum groupremove "Development tools" -- remove-leaves
Yum remove zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel -- remove-leaves
Python core programming version 2. (Wesley J. Chun). [Chinese version of hd pdf]
Python development technology details. (Zhou Wei, Zong Jie). [hd PDF scan version + book guide video + code]
Obtain Linux information using a Python script
Build a desktop algorithm transaction research environment using Python in Ubuntu
A Brief History of Python Development
Python details: click here
Python: click here
This article permanently updates the link address: