Linux (Centos)--Next upgrade python3.3

Source: Internet
Author: User

The Python version under CentOS is generally low, and many applications need to be upgraded to Python. The default Python version I installed for CentOS is V2.4.3, but the version that runs node. JS needs to be above 2.5.

1. Download python3.3 installation package: wget http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tgz

2. Unzip the installation package: TAR-ZXVF python-3.3.0.tgz
  

3. Enter the extracted 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. Execute: Make && make install

7. The new version of the installation has been completed, but since the old version is still in the system, you need to change the original/usr/bin/python link to a new connection: A. Modify the old connection first, execute: Mv/usr/bin/python/usr/bin/python_bak. B. Re-establishing a new connection: Ln-s/usr/local/python3.3/bin/python3.3/usr/bin/python

8. Querying Python version, executing: python

Shown below:
Python 3.3.0 (default, Jan 16 2013, 17:52:44)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on Linux
Type "Help", "copyright", "credits" or "license" for more information.
>>>
The installation is successful. Congratulations to you.

Linux (Centos)--Next upgrade python3.3

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

11.11 Big Sale for Cloud

Get Unbeatable Offers with up to 90% Off,Oct.24-Nov.13 (UTC+8)

Get It Now >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.