Python Error: Process finished with exit code -1073740791 (0xC0000409)

Case 1 is also the case of more on-line): (graphics card) insufficient memory

At this time, we can adjust the memory in pycharm:
Press Shift + Ctrl + A to search for

where:
XMS in xms128m refers to the memory required for program startup, 128M is the size
xmx1011m in Xmx, Xmx refers to the memory required for program running, 1011m is the size
increase it. Of course, your hardware should be able to withstand this setting

Read More: