Ubuntu12.04 install PYQT4 and Eric4

Source: Internet
Author: User
1、install siptarxvfsip-4.14.tar.gz cdsip-4.14/pythonconfigure. pymakemakeinstall2. Install qmake and qt4sudoapt-getinstalllibqt4-devlibqt4-debuglibqt4-guilibqt4-sqlqt4-dev-toolsqt4-docqt4-desig

1. Install sip

Tar xvf sip-4.14.tar.gz
Cd sip-4.14/
Python configure. py
Make
Make install

2. Install qmake and qt4

Sudo apt-get install libqt4-devlibqt4-debug libqt4-gui libqt4-sql qt4-dev-tools qt4-doc

3. Install 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. Install 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. Install 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. Start Eric4

/Usr/local/bin/eric4


Eric4 configuration reference:


When you open Eric4 for the first time, a configuration window will appear first. Here you can configure it simply (or later in Settings-Preferences ):

Under the Eidtor,

Click APIs, check "Compile APIs automatically", select "Python" as Language, click Add from installed APIs, and select eric4.api or other APIs you need. Click "Compile APIs" below, which takes some time. Click Apply.

Click Autocompletion, and check all three of them.

Click QScintilla and select "from Document and API files ".

Apply and then OK.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.