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
相关推荐
OldBigBrother 2020-11-09
追逐阳光的风 2020-07-04
王磊的程序员之路 2020-05-15
JimyFengqi 2020-02-17
hustlei 2020-02-01
hustlei 2020-01-29
lianback 2020-01-11
追逐阳光的风 2020-01-05
shengge0 2019-12-31
lianback 2019-12-30
Airuio 2019-12-05
hustlei 2011-03-03
OldBigBrother 2019-06-19
Eppley 2019-06-19