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