--Search for the version to download from the following site - https://www.python.org/ --For Linux, "Gzipped source tarball" would be fine
$ wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz
--Install the required packages in advance
$ yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel
--Install Python --Specify the directory to install with prefix
$ tar zxvf Python-3.4.3.tgz
$ cd Python-3.4.3
$ ./configure --prefix=/usr/local/python
$ make && make install
--Create a symbolic link --pip is a python package manager
$ ln -s /usr/local/python/bin/python3 /usr/local/bin/python
$ ln -s /usr/local/python/bin/pip3.4 /usr/local/bin/pip
--Check version --If it hasn't changed, log in again and it will change.
$ python --version
$ pip --version
Recommended Posts