Debian增加pygame和pyqt對python3的支援

來源:互聯網
上載者:User

源裡面一直沒有pygame和pyqt的Python3模組.於是自己安裝之。

 

對於pygame,下載源碼,解壓源碼(pygame-1.9.1release.tar.gz
),安裝一些必須的標頭檔和依賴庫

 

apt-get install python-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev python3.1-dev<br />python3.1 setup.py build<br />python3.1 setup.py install
 

 

對於PyQt4,下載sip和pyqt4的源碼,分別解壓,進入各自的目錄(先進入sip-4.12.2,後PyQt-x11-gpl-4.8.4)

sip目錄中執行:

python3.1 configure.py<br />make<br />make install

在pyqt目錄裡:

python3.1 configure.py<br />make<br />make install

 

參考:

 

http://www.pygame.org/wiki/CompileUbuntu?parent=Compilation

 

http://www.riverbankcomputing.co.uk/software/sip/download

 

http://www.riverbankcomputing.co.uk/software/pyqt/download

 

sip的README 和pyqt的README

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.