You may need to rebuild any Python packages you’ve installed from the AUR. To get a list of them, you can run:
pacman -Qoq /usr/lib/python3.9
And to rebuild them all at once with an AUR helper such as yay
, you can do:
yay -S $(pacman -Qoq /usr/lib/python3.9) --answerclean All
But if any of the packages don’t work with Python 3.10 yet, this might fail halfway through and you’ll have to do rebuild the remaining ones one or a few at a time.