ubuntu12.04 under Installation python3.4

Source: Internet
Author: User

ubuntu12.04 apt-get The default installation Python3 is version 3.2, so you need to update the source yourself to install python3.4 (the latest version is the same as the version that needs to be updated later)

Add a source and install the following steps:

   sudo apt-get install python-software-properties #没有这步,下一步会提示add-apt-repository未找到.   sudo add-apt-repository ppa:fkrull/deadsnakes #添加ppa源   sudo apt-get update; sudo apt-get install python3.4

Also need to install PIP to use a third-party module, using a script to install

 curl -O https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py sudo python3.4 get-pip.py

Verify that the PIP version is indeed python3.4

$ pip -V pip 7.1.0 from /usr/local/lib/python3.4/dist-packages (python 3.4)

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

ubuntu12.04 under Installation python3.4

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.