I tried to run the code in terminal, and no errors occur, though no images showed…So the error mentioned above may be some unknown inappropriate configuration of Pycharm. Could anyone help me point out it? And I also want to know why the code in terminal does not show images.