win10安装PyQt5和PyQt5-tools

可解决This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

  • 安装PyQt5
  • 安装PyQt5-tools
  • 替换plugins文件夹

安装PyQt5

pip install PyQt5 -i http://pypi.douban.com/simple --trusted-host pypi.d
ouban.com

安装PyQt5-tools

pip install PyQt5-tools -i http://pypi.douban.com/simple --trusted-host
pypi.douban.com

替换plugins文件夹

将你python安装路径下的 Lib\site-packages\PyQt5\Qt 下面的plugins文件夹复制到 Lib\site-packages\pyqt5_tools\Qt\bin 下面,然后双击designer.exe就可以正常打开程序了

你可能感兴趣的:(pyqt5-tools)