title: Python 2.7.12 on Ubuntu 20.04 in PyEnv
body: <p>I have some legacy websites that run on Python 2.7.12 and have just updated my dev machine to Ubuntu 20.04.</p>
  
  <p>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.</p>
  
  <p>I get error: </p>
  
  <pre><code>Installing Python-2.7.12...
  ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
  
  Please consult to the Wiki page to fix the problem.
  https://github.com/pyenv/pyenv/wiki/Common-build-problems
  
  
  BUILD FAILED (Ubuntu 20.04 using python-build 20180424)
  </code></pre>
  
  <p>Following advice <a href="https://github.com/pyenv/pyenv/wiki/Common-build-problems" rel="nofollow noreferrer">here</a> I run:</p>
  
  <pre><code>sudo apt-get remove libssl-dev
  sudo apt-get update
  sudo apt-get install libssl1.0-dev
  </code></pre>
  
  <p>I get error: </p>
  
  <p><code>E: Package 'libssl1.0-dev' has no installation candidate</code></p>
  
  <p>Is there any way of doing this?  If so then how please?</p>
  
  <p>Thank you.</p>