Obtain python3.3.0wgethttp: // Unzip get python3.3.0wget http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tgz unzip the compressed file tar xzvf Python-3.3.0.tgz into the file cd Python-3.3.0 add a new python3 installation directory to prevent overwrite to the older version of pythonmkdir/opt/python3.3.0 to start compilation and installation. /configure -- prefix =/opt/python3.3.0makemake install Connect ln-s/opt/python3.3.0/bin/python3/usr/local/bin/python3 using python3 [root @ localhost Python-3.3.0] # python3Python 3.3.0 (default, Jun 9 2014, 09:24:15) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linuxType "help", "copyright", "credits" or "license" for more information.> ps: do not overwrite Python 2 in linux when installing Python 3. This method can effectively avoid overwriting the old version of python.
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