歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 12.04 安裝PYQT4和Eric4

Ubuntu 12.04 安裝PYQT4和Eric4

日期:2017/2/28 15:30:43   编辑:Linux教程

1、安裝sip

tar xvf sip-4.14.tar.gz
cd sip-4.14/
python configure.py
make
make install

2、安裝qmake及qt4

sudo apt-get install libqt4-devlibqt4-debug libqt4-gui libqt4-sql qt4-dev-tools qt4-doc qt4-designerqt4-qtconfig

3、安裝PYQT4

tar xf PyQt-x11-gpl-4.9.5.tar.gz
cd PyQt-x11-gpl-4.9.5/
python configure.py
make
make install

4、安裝QScintilla

tar xvf QScintilla-gpl-snapshot-2.6.3-80df6cc89bae.tar.gz
cd QScintilla-gpl-snapshot-2.6.3-80df6cc89bae/
cd Qt4Qt5/
qmake qscintilla.pro
make
sudo make install
cd ..
cd Python/
sudo python configure.py
make
sudo make install
cd ..
cd designer-Qt4/
qmake designer.pro
make
sudo make install

5、安裝Eric4

tar xvf eric4-4.5.7.tar.gz
tar xvf eric4-i18n-zh_CN.GB2312-4.5.7.tar.gz
cd eric4-4.5.7/
python install.py

6、啟動Eric4

/usr/local/bin/eric4


Eric4配置參考:


初次打開Eric4,一個配置窗口會首先出現,這裡可以簡單的配置一下(或者以後在Settings – Preferences中配置也可以):

在Eidtor下面,

點擊APIs,勾選上”Compile APIs automatically”,選擇Language為”Python”,點擊Add from installed APIs,選擇eric4.api或其它你需要的APIs。然後點擊下面的”Compile APIs”,這裡會需要點時間。結束後點Apply。

然後點擊Autocompletion,裡面的三個都勾選上。

然後再點擊QScintilla,選”from Document and API files”。

Apply 然後 OK。

Copyright © Linux教程網 All Rights Reserved