运行文件时提示:
This application failed to start because it could not find or load the Qt platform plugin “windows”.
Reinstalling the application may fix this problem.
解决方法: 1.将和matplotlib相关的代码注释掉,发现上述错误消失,说明是matplotlib这个包有问题,在conda环境下重新install 2.报错this application failed to start because it could not find or load the Qtplatform plugin……就是版本太低,需要upgrade pytorch 进入anaconda prompt 激活环境conda activate pytorch 进行升级pip install --upgrade pytorch torchvision 等待安装conda install pytorch torchvision -c pytorch