When updating a venv to a newer python version you need to reinstall all locally install pip packages. This script can be pointed at the previous versions site-packages directory and output a string containing all previously installed packages, suitable to pass to pip install.
(Search-foo: Might help if you are running HomeAssistant inside a venv and, after upgrading python, integrations are not loaded)