CentOS upgrade Python3.4.3

Source: Internet
Author: User
1. Download the installation package: wgethttp: // www.python.org/ftp/python/3.4.3/python-3.4.3.tgz2. Unzip the installation package: tar-zxvfPython-3.3.0.tgz3. Enter the directory after decompression: cdPython-3.3.04. Create the installation directory mkdir/usr/local/py 1. Download installation package: wget http://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz

2. Unzip installation package: tar-zxvf Python-3.3.0.tgz


3. Go to the decompressed Directory: cd Python-3.3.0


4. Create the installation directory mkdir/usr/local/python3.3.


5. Compile and install:./configure -- prefix =/usr/local/python3.3

6. Run make & make install

7. Now the new version has been installed, but because the old version is still in the system, you need to change the original/usr/bin/python link to a new connection:. modify the old connection and run: mv/usr/bin/python/usr/bin/python_bak. B. create a new connection: ln-s/usr/local/python3.3/bin/python3.3/usr/bin/python

8. Query the python version and run: 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.