How to install Python 3.5.1 on Ubuntu 16.04 LTS?
Python 3.5.1 is installed on Ubuntu 16.04 by default. You can verify that by running the command python3 --version
in a terminal.
Now, IDLE for Python 3 is in the package idle3
and part of the default Python distribution but it's not installed on Ubuntu by default. You can do so with Software Center or your favourite package manager. On the command-line you can run:
sudo apt-get install idle3
If that gives you an error as you say in the comments, please edit your question with the "edit" link below it to include the error messages verbatim (and send me a message in the comments to notify me of the change), or ask a new question with the same information.
Related videos on Youtube
![Admin](/assets/logo_square_200-5d0d61d6853298bd2a4fe063103715b4daf2819fc21225efa21dfb93e61952ea.png)
Admin
Updated on September 18, 2022Comments
-
Admin almost 2 years
I want to install Python 3.5.1 on my Ubuntu 16.04 LTS. I have been searching but I still can't figure it out. I tried to find Python 3.5.1 in the Software Center but I couldn't find it.
Edit: I actually want to run IDLE 3, the Python IDE for Python 3.
Can someone tell me a step by step instruction on how to install it?
-
edwinksl about 8 years16.04 comes with Python 3.5.1. Can you try
which python3
andpython3 --version
and give us the outputs? -
edwinksl about 8 yearsCan you first tell us what
which python3
say? I want to make sure Python 3 is already on your system. As for your question regarding IDLE, IDLE is not installed by default. There is no reason why Python 3 must come together with IDLE. If you want it, dosudo apt install idle3
. -
Admin about 8 yearswhich python3 returns /usr/local/bin/python3, python3 --version returns Python 3.5.1
-
Admin about 8 yearsI tried sudo apt install idle3 and there is an error saying E: Sub-process /usr/bin/dpkg return an error code (1)
-
Admin about 8 yearsI can't resolve the error but I did download IDLE3. How should I fix the error?
-
edwinksl about 8 yearsSearch this site for that error; there are plenty of questions and answers regarding that. If you can't find a solution, feel free to ask a question.
-
edwinksl about 8 yearsNo problem at all. Enjoy using Ubuntu and Python!
-