Centos 6.5 does not cover py2.x installation of python3.3.2

Source: Internet
Author: User
Tags learn php

I recently went to the plateau and didn't want to read books. I simply wanted to learn PHP, but accidentally came into contact with python. How did you say I wouldn't learn? Right?

How to install python3.3.2.

Before that, it should be clear: centos6.5 itself is installed with python, 2.6.6 and 2.4, which is used for which link is used; others, for example, UBUNTU also comes with python, but the version is relatively low. Currently, python is facing a dilemma: Version update. Some functions and modules of version 3.x have changed significantly compared with version 2.x.

(These operations are performed on the terminal and the user permission is root ):

 
Open Python and see which version it is (I have installed it, of course 3.3.2 ),
 
 
 
Download Python later. Generally, the wget command is used. However, I have already downloaded python. As for where to download it, visit the official website.
 
DownloadedPython-3.3.2.tar.bz2, put it on the desktop, and then unzip:
 
 
 
CD to desktop:
 
 
Then go to the decompressed Folder:
 
 
 
Because I want to keep the original version, I have to create a new folder. I have created it in/usr/local.
The next step is to compile and install the tool (wait for two or three minutes ):

At this time, if you enter python in the interrupt, version 2.6 will be released, because the path has not been modified, that is, although you installed 3.3.2 during the connection, but there is no link, so you do not need 3.3.2, so you need to link:

What happened? As you can see, the folder conflicts during the link, and the original folder name is not modified, so we should first look like this:

The red part is the modified file name, which can be changed at will, but you must remember it

Next link:

Then in the terminal:

Let's talk about it. We suggest you keep the original version. If you use it one day, otherwise it will be O (cost □cost) O...

Reference: http://blog.sina.com.cn/s/blog_540775a30101bmci.html

THX: road-yi-san-mo-di-

Related Article

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.