Updating to python 3.8+

The python version shipped by dietpi-software is python 3.7… I would like to have python 3.8 or above however…

Is this possible? I am running dietpi on my rpi 3b+

       _,met$$$$$gg.          dietpi@DietPi
    ,g$$$$$$$$$$$$$$$P.       -------------
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 10 (buster) aarch64
 ,$$P'              `$$$.     Host: Raspberry Pi 3 Model B Plus Rev 1.3
',$$P       ,ggs.     `$$b:   Kernel: 5.10.17-v8+
`d$$'     ,$P"'   .    $$$    Uptime: 1 day, 3 hours, 49 mins
 $$P      d$'     ,    $$P    Packages: 553 (dpkg)
 $$:      $$.   -    ,d$$'    Shell: bash 5.0.3
 $$;      Y$b._   _,d$P'      Terminal: /dev/pts/0
 Y$$.    `.`"Y$$$$P"'         CPU: (4) @ 1.400GHz
 `$$b      "-.__              Memory: 147MiB / 910MiB


DietPi will install Debian apt package python3-dev from official Debian repository. Latest version is 3.7 https://packages.debian.org/buster/python3-dev

I guess you would need to compile it yourself to get a higher version. Maybe this guide could help https://linuxize.com/post/how-to-install-python-3-8-on-debian-10/

Thanks for your reply! Yeah I had to go down the route of compiling it myself… I will let this be there for anyone else.