ubuntu 安裝pyqt4 eric

來源:互聯網
上載者:User

標籤:strong   io   問題   div   re   時間   

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

Error: cannot import name Qsci

===========================

鬱悶,下載QScintilla-gpl-2.4.6.tar.gz,解壓之後找了半天也不知道怎麼裝,後來總算髮現在QScintilla-gpl-2.4.6的Qt4子目錄下有個qscintilla.pro,
執行
qmake qscintilla.pro
make
make install

然後進入QScintilla-gpl-2.4.6下的Python目錄執行命令
python3 configure.py
make
make install

這時回到eric的安裝目錄,安裝就沒有問題了。:)

啟動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。

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.