Hello mcstieg,
The latest version of Metashape (2.1.1) is using Python 3.9.13 version.
If pyarmor is the only external module that you are using, you can try uninstalling Metashape Pro, clearing the installation folder completely (you can backup geoids and autostart scripts, if any are present), then re-install Metashape and re-install pyarmor module.