Pycharm中import PyQt5报错 首先检查你的PyQt5有没有安装好。 安装命令:pip install PyQt5 然后再pip install PyQt5-tools 查看设置 进行安装,过一分钟,报错就没有了。 成功运行第一个界面