assert _sre.MAGIC == MAGIC, "SRE module mismatch"

  • Unfortunately, I couldn't reproduce your issue. Firstly, please check if all dependencies are installed correctly. Additionally, try running the compilation with administrator privileges to see if that resolves the issue.
    host-python.png