Of course, you need a Raspberry Pi with a running Raspbian. I have tested this instructions on a Raspi 1 B+ and Raspbian Stretch (Image from 2019-04-08). I think, any newer hard/software will work too.
Because there isn't any package for Python 3.7 on armhf (=Architecture of the Raspi), we have to compile Python from sources. This takes a while, but you can leave it completely unattended.
- Go to https://www.python.org/downloads/source/ and take the newest Release (at the time of writing, its 3.7.3).
- Download it with wget:
wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz
- Uncompress it with tar:\