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