Skip to content
Advertisement

Python 2.7.12 on Ubuntu 20.04 in PyEnv

I have some legacy websites that run on Python 2.7.12 and have just updated my dev machine to Ubuntu 20.04.

I am trying to get PyEnv to install Python 2.7.12, but it seems that this depends on libssl1.0-dev which has been dropped in Ubuntu 20.04.

I get error:

JavaScript

Following advice here I run:

JavaScript

I get error:

E: Package 'libssl1.0-dev' has no installation candidate

Is there any way of doing this? If so then how please?

Thank you.

Advertisement

Answer

As Klaus mentioned you could use docker image for python 2.7, but ssl library is very crucial, so it’s weird that it has no installation candidate. The package libssl-dev for focal is listed here

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement