一、问题描述: Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created. Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created. 二、解决步骤 1. 卸载低版本 卸载低版本Matplotlib 2. 安装最新版本 安装最新版本的Matplotlib 问题解决