做金融必看網(wǎng)站谷歌在線瀏覽器免費(fèi)入口
Qt Designer分為PyQt5 Qt Designer、PySide6 Qt Designer,下面分別介紹各自的安裝方式和打開方式
首先,檢查是否安裝了python,使用cmd打開命令行窗口,輸入:
python --version
若出現(xiàn)python的版本號(hào),則已安裝;若沒有安裝,可以直接官網(wǎng)下載
第1種.PyQt5 Qt Designer
依次在命令行窗口輸入:
pip install PyQt5
pip install pyqt5-tools
即可安裝PyQt5和pyqt5-tools,若安裝速度過慢,可以使用鏡像
pip install PyQt5 -i https://pypi.douban.com/simple
鏡像源
http://mirrors.aliyun.com/pypi/simple/ 阿里云
http://pypi.douban.com/simple/ 豆瓣
https://pypi.mirrors.ustc.edu.cn/simple/ 中國科技大學(xué)
http://pypi.mirrors.opencas.cn/simple/ 中科院
https://pypi.tuna.tsinghua.edu.cn/simple/ 清華大學(xué)
Qt Designer的路徑:首先找到Python的安裝路徑,然后依次逐層進(jìn)入bin目錄
**\Python\Lib\site-packages\qt5_applications\Qt\bin
然后會(huì)看到一個(gè)designer.exe
,雙擊打開即可運(yùn)行Qt Designer,為方便操作,可以右鍵生成桌面快捷方式
第2種.PySide6 Qt Designer
在命令行窗口輸入:
pip install PySide6
Qt Designer的路徑:首先找到Python的安裝路徑,然后依次逐層進(jìn)入PySide6目錄
**\Python\Lib\site-packages\PySide6
然后會(huì)看到一個(gè)designer.exe
,雙擊打開即可運(yùn)行Qt Designer,為方便操作,可以右鍵生成桌面快捷方式