title: How to install python3.6 on Ubuntu 22.04
body: <p>I need to install this specific python version, to prepare a developer environment, because I'm maintaining a system with multiple libraries based on python 3.6.9.
  I recently installed Ubuntu 22.04 on my laptop, but I had no success trying to install this python version.</p>
  <p>I tried to install <a href="https://askubuntu.com/questions/1231543/problem-with-creating-python-3-6-virtual-environment-on-ubuntu-20-04">with apt-get after adding the deadsneak repository</a>, but this python version is not available.</p>
  <p>I tried <a href="https://stackoverflow.com/questions/70395169/how-to-install-python-3-6-on-ubuntu-21-10">installing from source by compiling</a>, but it did not work.  Running <code>sudo make altinstall</code> exited with this error:</p>
  <pre><code>Segmentation fault (core dumped)
  make: *** [Makefile:1112: altinstall] Erro 139
  </code></pre>