Python3 GUI:PyQt5环境搭建

配置镜像源

最近用Python内置的Thinter写了个小工具,发现界面略朴素,于是决定转向PyQt5。先配置镜像源,否则只能龟速下载。

C:Users你的用户名下新建目录pip

在pip目录下新建文件pip.ini,配置如下

[global] index-url=https://pypi.tuna.tsinghua.edu.cn/simple

安装PyQt和工具

打开命令行窗口执行如下命令

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

在Python安装目录Libsite-packagespyqt5_tools找到designer.exe并打开就可以设计界面了。

原文地址:https://www.cnblogs.com/webDepOfQWS/p/11219669.html