Why does one Python script raise a qt.qpa.plugin error, while another identical script does not?
问题 I have two virtually identical scripts running in the same PyCharm IDE. They both call into a third script that uses matplotlib to output a Numpy array to a PNG. One of the scripts works fine and outputs the PNG. The other script raises the following error: qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found. The differences between the scripts are minimal - they only vary in that they each import a different pytorch model (both models created by me).