Reinstallation failed on RaspberryPi [2023.1, Core]

I have reinstalled Home Assistant (2023.1, core) because I’ve had to upgrade Python to version 3.10 on a RaspberryPi.
I’ve followed all the steps again and now when I launch it, I get the following errors, which seem to indicate an issue with sqlite. Any idea why that might be happening?

2023-01-06 00:24:30.894 ERROR (MainThread) [homeassistant.setup] Setup failed for analytics: Unable to import component: No module named '_sqlite3'
2023-01-06 00:24:30.907 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: analytics
2023-01-06 00:24:30.908 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: (DependencyError(...), 'Could not setup dependencies: analytics')
2023-01-06 00:24:30.910 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: onboarding
2023-01-06 00:24:30.910 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: (DependencyError(...), 'Could not setup dependencies: onboarding')
2023-01-06 00:24:30.916 ERROR (MainThread) [homeassistant.setup] Setup failed for recorder: Unable to import component: No module named '_sqlite3'

I’ve reverted to my old installation (Python3.9/2022.12) and it’s working fine, but the clock is ticking on Python 3.10, so not sure what to do here.

I probably won’t know the answer - but you should edit your post to include the installation type (which I suspect is Core?)

There is a similar issue in the 2023.1 release thread: 2023.1: Happy New Year of the voice! - #84 by TheMcBain92

The solution is in Help with upgrading Core Install to Python3.10 on RPI4