114

I want to install Python 3.9 on my Ubuntu 20.04, and all tutorials I can find include a step as follows:

sudo add-apt-repository ppa:deadsnakes/ppa

I am concerned about security. I've looked into this question: Are PPAs safe to add to my system and what are some "red flags" to watch out for?

According to the answers, some of the main points to consider are:

Attempts to search the internet for deadsnakes only brought me into tutorials on how to install Python, which is where I started...

8
  • 7
    I've just asked a question on meta to try to understand why this was closed as a duplicate.
    – Pedro A
    Mar 22, 2022 at 16:04
  • 5
    I don't get why this question is receiving so many downvotes. Mar 23, 2022 at 19:17
  • 5
    "who is deadsnakes and why should I trust them?" why would you trust anyone on askubuntu? The one responding mght be deadsnakes :=D
    – Rinzwind
    Jul 16, 2022 at 18:09
  • 8
    Would the real deadsnakes please stand up?
    – mdhansen
    Oct 28, 2022 at 18:21
  • 8
    @mdhansen hello it me Jun 6, 2023 at 13:59

1 Answer 1

71

Note: Please don't change the default version of python3. You may end up destroying Ubuntu. Instead, run python3.9 with the command python3.9.

Also, you can install python 3.9.5 in Ubuntu 20.04 even without the deadsnake PPA with the commands

sudo add-apt-repository universe
sudo apt update
sudo apt install python3.9

For other versions of Ubuntu (e.g. 22.04), you may need the deadsnakes ppa.

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.9

Now let's answer your questions.

Someone named deadsnakes

No, deadsnakes is a pun on python.

Who made the PPA

As you can see here, the packages in the PPA are uploaded by Felix Krull and Anthony Sottile.

How many users have used the PPA

According to PPA Stats, Python3.9 alone has been downloaded 2208666 times, as of writing this answer. On average, there are 10000 downloads per day.

7
  • 1
    Note you would have to have the Universe repositories enabled to get python3.9.5
    – ubfan1
    Mar 21, 2022 at 18:27
  • Is there any reason python3.10 is not in Universe like python3.9? "Unable to locate package python3.10" Jul 31, 2022 at 18:59
  • 4
    @MikeDalrymple It was released long after 20.04 was released, that's why. Aug 1, 2022 at 9:21
  • 2
    On 22.04, universe is not enough for installing python3.9
    – smido
    Jan 17, 2023 at 22:27
  • Here is a nice video that Anthony talks about it!
    – kyrlon
    Apr 28, 2023 at 14:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .