Installing Python 3.4 from source
Solution 1:
If you simply want Python 3.4 on Ubuntu and want to avoid the trouble of compiling from source, consider installing it from Felix Krull's Python PPA
Add the PPA
$ sudo add-apt-repository ppa:fkrull/deadsnakes
Update Apt cache
$ sudo apt-get update
Install Python 3.4
$ sudo apt-get install python3.4
Solution 2:
Install primary versions of python with:
sudo make install
and install secondary versions with:
sudo make altinstall
For example, I do not have any Python installations on my system and I want to install 3 versions: 2.7, 3.3 and 3.4. I want to make 2.7 the primary installation (as python
) and all the others as secondary (as python3.3
and python3.4
) installations. I would install the primary with:
sudo make install
and install both the other versions with:
sudo make altinstall
The produced programs would be python
(2.7), python3.3
(3.3) and python3.4
(3.4)
Information from README
file in the Python 3.4 source code directory.