Ubuntu 20.04, have broken python3, can it be fixed?

To avoid the issue in the future, you can use python virtual environments for your coding and leave the ubuntu system stuff alone.

You will have your own python environment, used only by you, fully under your control, and you will know what's happening with it at all times. Instead of the system possibly updating the modules you are trying to use in your code.

  • https://python.land/virtual-environments/virtualenv
  • https://docs.python.org/3/library/venv.html