Why I can not install python3.6-dev on Ubuntu16.04

I am trying to install Python 3.6-dev using this command:

 sudo apt-get install python3.6-dev 

but I get this error:

 E: Unable to locate package python3.6-dev E: Couldn't find any package by glob 'python3.6-dev' E: Couldn't find any package by regex 'python3.6-dev' 

Can anyone help? Why am I getting this error and how to install the package correctly?

+14
source share
5 answers

As omajid mentioned, the package is not available on 04/16. But if you need it in 04/16, you can get it by adding, for example, Felix Krull's personal repository of packages:

 sudo add-apt-repository ppa:fkrull/deadsnakes 

Change: the above PPA has been disabled, see the discussion here and the new PPA here . So use the PPA mentioned below to use it:

sudo add-apt-repository ppa:deadsnakes/ppa

+19
source

The package is too new. It is not available in the older version 16.04. It is available in the new Ubuntu 16.10 .

+7
source

For those who tried to install python-3.6 and got the same error as above. It can help you also us, it helped me fix the pb.

  1. Open a terminal, then run the command to add the PPA:

    sudo add-apt-repository ppa:jonathonf/python-3.6

  2. Then check for updates and install Python 3.6 using the commands:

    sudo apt-get update

    sudo apt-get install python3.6

Now, to make sure you have installed successufly, just run python3.6-v or python3.6

See "How to install Python 3.6.1 on Ubuntu 16.04 LTS" for more details .

Note: Linux 16.04 uses python v 2.7 as the default version, if you need to use python 3.6 in your project, just install python-3.6 as the default version for this project. Better then use the sudo update-alternatives... then your terminal will disappear :(.

+5
source

This ppa worked like a charm on Ubuntu 16.04. Post here for others.

 sudo apt-get install software-properties-common sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update sudo apt-get install python3.6 
+1
source
 sudo add-apt-repository ppa:deadsnakes/ppa 

Guess they changed the repo name.

0
source

Source: https://habr.com/ru/post/1267160/


All Articles