skip to Main Content

I cant find and install any package related to Python 3.11

First I search for the package:

$ apt search python3.11
Sorting... Done
Full Text Search... Done

So even without response I tried to install the package, hoping for some miracle:

$ sudo apt install python3.11
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package python3.11
E: Couldn't find any package by glob 'python3.11'
E: Couldn't find any package by regex 'python3.11'

2

Answers


  1. As mentioned in the comments, Ubuntu 18.04 had reached the end of the support. There is no package for Python 3.11 on apt.

    If you don’t want to upgrade (at least for now), you have two options:

    1. Download the source code release and compile it inside your environment; or
    2. Use another package/environment management system which does have Python 3.11 available, e.g. conda.
    Login or Signup to reply.
  2. download source code and unzip it in a folder
    go to that folder and run this command :

    make 
    

    after a while ….
    run this command

    sudo make altinstall
    

    notice : dont use install instead of altinstall because your linux will be broken…!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search