I noticed from your snapshot (second column in the table) that you’re actually using Python 3.12. This shouldn’t be a problem, as we have a solution that should work with all Python versions:
I think that your problem is related to the mixed environment HomeBrew/MacPorts. The recommended approach is to avoid mixing Homebrew and MacPorts, as this often leads to conflicts. I would suggest cleaning your environment settings as in this post