Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.4K
Views
How to install python3.9 on linux ubuntu terminal?

i Tried apt install python 3.9 and it reply

Building dependency tree
Reading state information... Done
E: Unable to locate package python3.9
E: Couldn't find any package by glob 'python3.9'
E: Couldn't find any package by regex 'python3.9'
over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

You are getting that error because you first need to update the package list and the prerequisites.

sudo apt update
sudo apt install software-properties-common

Then, add the repo ppa:deadsnakes/ppa to your sources list (where you will download python from)

sudo add-apt-repository ppa:deadsnakes/ppa

Make sure to press enter when prompted.

Lastly, install the version of your choice

sudo apt install python3.9

Make sure to read this:

Disclaimer: there's no guarantee of timely updates in case of security problems or other issues. If you want to use them in a security-or-otherwise-critical environment (say, on a production server), you do so at your own risk.

PPA Deadsnake

over 4 years ago · Santiago Trujillo Report

0

If you are on Ubuntu 19.04 eoan (or any other version unsupported by the deadsnakes ppa), you will not be able to install using the deadsnakes ppa.

What you can do instead, is get the source from Python's official website, and install it manually, as described here.

To do so, first, install the dependencies required to build the Python package.

sudo apt install build-essential zlib1g-dev \
libncurses5-dev libgdbm-dev libnss3-dev \
libssl-dev libreadline-dev libffi-dev curl software-properties-common

then download the tarball and extract it:

wget https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tar.xz
tar -xf Python-3.9.0.tar.xz

Then cd to the extracted directory:

cd Python-3.9.0

Now configure the script:

./configure

Now, to install Python3.9 alongside your current Python installation (if any), use:

sudo make altinstall

Lastly, you can verify your installation using

python3.9 --version
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!