

You can download the packages in my repository at. Decide for yourself if I’m trustworthy and if you have any doubts, check out the source and compile the packages yourself. NOTE: You should never install keys and add repositories from developers you don’t trust. After you have created your virtual enviroment you can then update pip itself (if you so desire, but optional) and any packages as usual. To make the venv module work without backporting all pip-related packages, the python3.8-venv package depends on python3-distutils which is present in buster. This version should be an extension to your system, but it’s not meant to replace an existing Python installation. So no defaults (which provide virtual packages so python3 get’s automatically linked to python3.8 for example), no pip and no pip-packages. The scope of this project is limited to backporting just Python 3.8 itself.

If there will be any updates to Python 3.8 before Debian bullseye is released, these will simply be distributed via APT as well. To make your life easier (and keep my homeserver as clean as possible), I made a backport of Python 3.8 for Debian buster (using Debian bullseye) which you can simply install via APT. Of course compiling also takes a bit of time. It is also usually not as easy to remove after you have installed it. Although this works usually pretty good, by compiling from source and installing it, you are effectively bypassing any form of version and dependency control you have with package managers like APT. If you are not willing to use the Docker container, the only option you have left is compiling Python from source yourself. Support will only come with Debian bullseye which will not be released before at least April 2021.

However many of us who are running Debian-based operating systems (including Raspberry Pi OS) can’t install Python 3.8 or later from the official repositories.

This is not a problem for people running Home Assistant OS, or using the official Docker container. With the release of Home Assistant 0.116, Python 3.7 is now deprecated and support will be removed in 0.118.
