Python 环境 3.6.8
PyQt 版本 以及 PyQt_tools 版本如下图所示

安装 PyQt 可以使用 pip install 方式安装,也可以通过pycharm 安装,我采用了后者,安装过程如下
File --> Settings --> Python Interpreter


安装 pyqt5-tools 跟以上方式相同。
注意 网上很多教程 说 Qt Designer 在安装 pyqt-tools后在 "Python安装路径\Lib\site-packages\pyqt5-tools",新版的Qt Designer 并不在该文件夹下。而是在"Python安装路径\Lib\site-packages\pyqt5-tools\Qt\bin" 文件夹中。

双击即可打开该执行文件,不过这个过程在我整个安装过程中占了80%的时间,因为期间遇到了各种各样的坑。
问题一
由于找不到 VCRUNtime 140_1

https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads下载网址

问题二
This application failed to start because no Qt platform plugin could be initialized



将图1中的文件夹复制替换到图二中的位置,问题解决。
完结撒花,记录一下,希望可以帮助到遇到同样问题的大佬们。
参考网址:
https://blog.csdn.net/qq_42365534/article/details/102847013
https://stackoverflow.com/questions/61324972/pyqt5-designer-is-not-working-this-application-failed-to-start-because-no-qt-pl
网友评论