Added pygame and pyqt support for python3 In Debian.

Source: Internet
Author: User

The python3 module of pygame and pyqt has not been installed in the source.

 

For pygame, download the source code and decompress the source code (pygame-1.9.1release.tar.gz
) To install some required header files and dependent libraries.

 

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
 

 

For pyqt4, download the source code of SIP and pyqt4, decompress them, and enter their respective directories (first enter sip-4.12.2, then PyQt-x11-gpl-4.8.4)

Run the following command in the SIP directory:

Python3.1 Configure. py <br/> make install

In the pyqt directory:

Python3.1 Configure. py <br/> make install

 

Refer:

 

Http://www.pygame.org/wiki/CompileUbuntu? Parent = Compilation

 

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

 

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

 

Readme of SIP and readme of pyqt

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.