When Pycharm runs the program, it will report an error: Process finished with exit code -1073740791 (0xC0000409), and the detailed error message cannot be viewed.
Solution
- Choose run -> Edit Configurations…

- Check Emulate terminal in output console, click apply, OK

After completing the above operations, you can display the specific error on the console to debug it.