python 3.4 is installed on the stable release of Ubuntu 14.04. You need to use python3 to use python 3.4. For example, to execute a script file.py, use:

python3 file.py

This will use python 3.4 to interpret your program or you can use the shebang to make it executable. The first line of your program should be:

#!/usr/bin/env python3

and then use chmod +x file.py to assign executable permissions and then run your python script as ./file.py which would use python3 to execute.

If you want python3 to be used when you type python on the terminal, you can use an alias. To add a new alias, open your ~/.bash_aliases file using gedit ~/.bash_aliases and type the following:

alias python=python3

and then save and exit and type

source ~/.bash_aliases

and then you can type

python file.py

to use python3 as your default python interpreter.

No, you don't need IDLE just to use python3 to interpret your programs.

Answer from jobin on askubuntu.com
🌐
GitHub
github.com › mhbashari › Install-Python3.4-on-Ubuntu-16.04
GitHub - mhbashari/Install-Python3.4-on-Ubuntu-16.04: Install Python3.4 In Ubuntu 16.04 lts
But at this time there are some famous packages incompatible with version 3.5. There is no guaranty but By Following this instruction you almost certainly can build and use the python version 3.4 on ubuntu16.04.Before start I give my thanks to tecadmin.net for its great step by step guide, but I do some edition on it. So let to do: ... $ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
Starred by 12 users
Forked by 3 users
Discussions

Is there an easy way to install Python 3.4 on Ubuntu 12.04?
If what you need is to install Python 3.4, you can install the Debian package via ppa:fkrull/deadsnakes $ sudo add-apt-repository ppa:fkrull/deadsnakes $ sudo apt-get update $ sudo apt-get install python3.4 Source: my Stackoverflow answer More on reddit.com
🌐 r/Python
11
0
March 20, 2014
How do I install python?
Chances are it's already installed. In terminal you can type python3 --version and it will tell you if it is installed already. More on reddit.com
🌐 r/Ubuntu
11
4
February 25, 2021
Docker: An open source project to pack, ship and run any application as a lightweight containers
Docker is an open-source project to easily create lightweight, portable, self-sufficient containers from any application. The same container that a developer builds and tests on a laptop can run at scale, in production, on VMs, bare metal, OpenStack clusters, public clouds and more. More on reddit.com
🌐 r/docker
March 3, 2026
How do I completely uninstall python3.6
sudo apt-get update sudo apt-get upgrade sudo apt-get purge python3.6 = Nuke from orbit. Use at your own risk. More on reddit.com
🌐 r/learnpython
21
13
September 26, 2017
🌐
GitHub
gist.github.com › chaosmail › 5b5dbab0cc80bf945671
Install Python 3.4.3 on Ubuntu · GitHub
Install Python 3.4.3 on Ubuntu. GitHub Gist: instantly share code, notes, and snippets.
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to install python 3 on ubuntu
How to Install Python 3 on Ubuntu | phoenixNAP KB
February 5, 2025 - Follow our step-by-step installation guide and install Python 3 on Ubuntu using APT, PPA, or from the source code.
🌐
The Hitchhiker's Guide to Python
docs.python-guide.org › starting › install3 › linux
Installing Python 3 on Linux — The Hitchhiker's Guide to Python
Python 2.7.9 and later (on the python2 series), and Python 3.4 and later include pip by default. To see if pip is installed, open a command prompt and run ... To install pip, follow the official pip installation guide - this will automatically install the latest version of setuptools. Note that on some Linux distributions including Ubuntu and Fedora the pip command is meant for Python 2, while the pip3 command is meant for Python 3.
🌐
TutorialsPoint
tutorialspoint.com › how-to-install-python-3-4-4-on-ubuntu
How to Install Python 3.4.4 on Ubuntu - TutorialsPoint
January 22, 2020 - How to Install Python 3 4 4 on Ubuntu - Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language. It was created by Guido van Rossum during 1985- 1990. Like Perl, Python source code is also available under the GNU General Public License (GPL).This article describes “How to install Python
Find elsewhere
🌐
Ubuntu
documentation.ubuntu.com › ubuntu-for-developers › reference › availability › python
Available Python versions - Ubuntu for Developers
April 5, 2026 - Installing Ubuntu Desktop for developers · Using Git version control on Ubuntu · Packaging software · Introduction to the .NET toolchain · Debugging with .NET · GraalVM native compilation · Contribute documentation · Back to top · Contribute to this page · This page lists Python versions available in Ubuntu releases. bold – package is in main · bold – package is in main · Contents · Available Python versions · Ubuntu Python 3 (deb) packages ·
🌐
Linuxize
linuxize.com › home › python › how to install python 3.7 on ubuntu 18.04
How to Install Python 3.7 on Ubuntu 18.04 | Linuxize
October 15, 2019 - At this point, Python 3.7 is installed on your Ubuntu system and ready to be used. You can verify it by typing: ... sudo apt update sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev wget libbz2-dev · Download the latest release’s source code from the Python download page using the following wget command: ... At the time of writing this article, the latest release is 3.7.4...
🌐
BitLaunch
bitlaunch.io › blog › how-to-install-python-on-ubuntu
7 Ways to Install and Manage Python and Python3 on Ubuntu
March 5, 2026 - Learn the best ways to install Python on Ubuntu, including how to install pip, pyenv, and Anaconda on Ubuntu to safely manage your Python 3 versions.
🌐
Cherry Servers
cherryservers.com › home › blog › linux › how to install python3 on ubuntu 22.04 | step-by-step
How to Install Python3 on Ubuntu 22.04 | Cherry Servers
February 20, 2026 - As discussed earlier, Python 3.10 is provided by Official Ubuntu repositories and is preinstalled by default. When prompted to continue, hit ENTER on the keyboard. Once the repository is added, update the package lists once again to update the packages index with the newly added PPA. ... Next, install Python3.11 using the APT package manager, as shown.
🌐
bodHOST
bodhost.com › general discussion › how to install python 3 on ubuntu 20.04 or 22.04
How to Install Python 3 on Ubuntu 20.04 or 22.04 | bodHOST
February 26, 2026 - To set up all the available versions as alternatives, installed recently, use: sudo update-alternatives –install /usr/bin/python python /usr/bin/python3.X (Note: Replace the X with the version you want to install:10 1,.11 2,.12 4) Once configured with the available versions against each other, ...
🌐
UltaHost
ultahost.com › knowledge-base › install-python-3-ubuntu
How to Install Python 3 on Ubuntu | Ultahost Knowledge Base
June 21, 2025 - There are several ways you can install Python 3 on Ubuntu, from using the native package manager to a simple one-click download. The simplest way is how most users will want to do it, with the APT package manager.
🌐
MonoVM
monovm.com › 📚 tutorials 📚 › how to install python on ubuntu? [install python 3 ubuntu]
How to Install Python on Ubuntu? [Install Python 3 Ubuntu]
November 1, 2023 - Are you looking to install python on Ubuntu OS? Here’s everything that will guide you on how to install python 3 on ubuntu and Python installation Command to the Updation process inside this article.
🌐
GeeksforGeeks
geeksforgeeks.org › installation guide › how-to-install-python-in-ubuntu
How to install Python in Ubuntu (3 Methods to install ) - GeeksforGeeks
July 23, 2025 - ... Browse to the Official Python Page & copy the Gzipped Source Tarball link for any version. Paste the link in the Linux Terminal as the following. ... Extract the Downloaded TGZ File using the following Linux command.
🌐
FoxuTech
foxutech.com › home › programming › how to install python 3.4.4 on ubuntu
How to Install Python 3.4.4 on Ubuntu/Debian - FoxuTech
March 6, 2017 - Download Python using following command from python site. You can also download latest version in place of specified below. ... Now extract the downloaded package. ... Use below set of commands to compile python source code on your system using ...
🌐
LinuxCapable
linuxcapable.com › home › ubuntu › how to install python 3.14 on ubuntu 26.04, 24.04 and 22.04
How to Install Python 3.14 on Ubuntu 26.04, 24.04 and 22.04 - LinuxCapable
May 6, 2026 - Keeping python3.14 in the command is harmless on 26.04 and ensures the runtime is present on customized systems: sudo apt install python3.14 python3.14-venv python3.14-dev ... python3.14: Installed: 3.14.4-1 Candidate: ...
🌐
Linode
linode.com › docs › guides › how-to-install-python-on-ubuntu-20-04
How to Install Python 3 on Ubuntu 20.04 | Linode Docs
February 12, 2020 - As of January 1, 2020, the official version of Python is Python 3. Python 2 is no longer a supported language. This guide walks you through installing the latest version of Python 3 on Ubuntu 20.04.
🌐
RoseHosting
rosehosting.com › home › how to install python on ubuntu 24.04
How to Install Python on Ubuntu 24.04 | RoseHosting
July 1, 2024 - rm -rf Python-3.12.4/ rm /usr/local/bin/python3.12 · That’s it. You successfully installed Python on Ubuntu 24.04. Of course, you do not have to do this on your own. You only need to sign up for the best NVMe Ubuntu hosting and submit a support ticket.