$ asdf install python 2.7.18
python-build 2.7.18 /home/ubuntu/.asdf/installs/python/2.7.18
Downloading Python-2.7.18.tar.xz...
-> https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz
Installing Python-2.7.18...
BUILD FAILED (Ubuntu 20.04 using python-build 2.0.1-6-g5f751985)
Inspect or clean up the working tree at /tmp/python-build.20210621163035.36727
Results logged to /tmp/python-build.20210621163035.36727.log
Last 10 log lines:
checking MACHDEP... linux2
checking EXTRAPLATDIR...
checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/tmp/python-build.20210621163035.36727/Python-2.7.18':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
worked fine with
sudo apt install python2