Upgrade python2 to python3 and python2 to python3.

Source: Internet
Author: User

Upgrade python2 to python3 and python2 to python3.

Centos 6.5 System Environment
Python 2.6.6
Target python version 3.5.1
1. Download python3.5
Wget -- no-check-certificate http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tgz
2. decompress the file for compilation and Installation
Tar-xvzf Python-3.3.0.tgz
Cd Python-3.3.0
./Configure -- prefix =/home/python/soft_install/python3.3/
Make
Make install
Go to the bin directory under the installation directory and check whether the installation is successful.
./Python3.3-V --- if the installation is successful, the version number is displayed.
Modify the default python and recreate the soft link.
Ln-s/home/python/soft_install/python3.3/bin/python3.3/usr/bin/python

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.