<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > Python PyQt5工具在Windows平臺(tái)上的安裝方法

          Python PyQt5工具在Windows平臺(tái)上的安裝方法

          作者: 時(shí)間:2017-10-11 來源:網(wǎng)絡(luò) 收藏

          Windows平臺(tái):win7-64bit

          本文引用地址:http://www.ex-cimer.com/article/201710/365585.htm

          Python版本:Python 3.4.1

          下載地址:

          (官網(wǎng))https://www..org/downloads/release/-343/

          (網(wǎng)盤)鏈接: http://pan.baidu.com/s/1geKjgdH 密碼: hjnf

          PyQt5版本:PyQt5-5.4-gpl-Py3.4-Qt5.4.0-x64.exe,

          下載地址:

          (官網(wǎng))https://riverbankcompuTIng.com/software/pyqt/download5

          (網(wǎng)盤)鏈接: http://pan.baidu.com/s/1miKVdOG 密碼: eqar

          安裝步驟:

          1. 安裝Python3.4.1,默認(rèn)安裝路徑:C:Python34

          2. 安裝PyQt5,會(huì)根據(jù)Python的安裝路徑自動(dòng)進(jìn)行安裝,不需要修改。

          3. 測試安裝是否成功。創(chuàng)建一個(gè)py文件,寫入以下代碼,運(yùn)行后彈出widget窗口就說明安裝成功了。

          import sys

          from PyQt5 import QtWidgets, QtCore

          app = QtWidgets.QApplicaTIon(sys.argv)

          widget = QtWidgets.QWidget()

          widget.resize(400, 100)

          widget.setWindowTItle(“This is a demo for PyQt Widget.”)

          widget.show()

          exit(app.exec_())

          4. 如果需要PyQT的IDE界面編輯工具,要安裝Eric。

          Eric是一款,ruby的IDE,其代碼功能強(qiáng)大,與QT完美結(jié)合,使開發(fā)Python的圖形界面應(yīng)用程序變得更加容易。

          官方網(wǎng)站:http://eric-ide.python-projects.org/

          下載地址:http://sourceforge.net/projects/eric-ide/files/eric6/stable/6.0.3/

          其他可選擇的下載地址:

          http://nchc.dl.sourceforge.net/project/eric-ide/eric5/stable/5.1.5/eric5-5.1.5.zip

          中文漢化包:http://nchc.dl.sourceforge.net/project/eric-ide/eric5/stable/5.1.5/ eric5-i18n-zh_CN.GB2312-5.1.5.zip

          安裝:解壓eric5-5.1.5.zip和eric5-i18n-zh_CN.GB2312-5.1.5.zip文件解壓到相應(yīng)的目錄中,將eric5-i18n-zh_CN.GB2312-5.1.5文件夾中的文件全部拷貝至eric5-5.1.5文件夾中。再將eric5-5.1.5文件夾復(fù)制到C:根目錄下,點(diǎn)擊eric5-5.1.5中的install.py文件進(jìn)行安裝。

          配置:點(diǎn)擊Eric安裝目錄中的eric5.bat(首次)或eric5-configure.bat進(jìn)行配置。

          Editor—>AutocompaTIon—>勾上所有的選框;

          QScintilla—>勾上左右的兩個(gè)選框,然后在下面source中,選擇from Document and API files.

          Editor—>APIs—>勾上Complie APIs Autocompation,然后在Language中,選擇python。

          點(diǎn)面下面的Add from installed APIs按鈕,選擇需要的.api文件,最后點(diǎn)擊Compile APIs。



          關(guān)鍵詞: python pyqt5

          評(píng)論


          相關(guān)推薦

          技術(shù)專區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();