Debian增加pygame和pyqt对python3的支持

源里面一直没有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 python3.1 setup.py build python3.1 setup.py install  

 

对于PyQt4,下载sip和pyqt4的源码,分别解压,进入各自的目录(先进入sip-4.12.2,后PyQt-x11-gpl-4.8.4)


sip目录中执行:

python3.1 configure.py make make install

在pyqt目录里:

python3.1 configure.py make 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

你可能感兴趣的:(python,Debian,Build,subversion)