1. download Python 3.3.5 of linux. The following is the region of my shared Baidu cloud disk/
1. download Python3.3.5 of linux. The following is the shared Baidu cloud disk.
Pan.baidu.com/s/1i3j238T
2. decompress the package:
Tar-zxvf Python-3.3.5.tgz
3. go to the decompressed Directory:
Cd Python-3.3.5
4. create the installation directory. here I will install it under/usr/local.
Mkdir/usr/local/python3.3
5. Compile and install the tool. if the language is good, you can view the readme file in the decompressed file to guide your installation process.
./Configure -- prefix =/usr/local/python3.3
6. execute the installation:
Make & make install
After the installation, the new version has been installed. because Centos6.4 comes with python 2.6.6, you need to change the original link to a new version.
First, modify the original link.
Mv/usr/bin/python/usr/bin/python_bak
Then create a new link.
Ln-s/usr/local/python3.3/bin/python3.3/usr/bin/python
The installation and upgrade are complete. To check the version, enter python -- version to view the new python version. Start python directly.