抓取网站访客qq,青岛官网seo推广,产品推广有哪些平台,2017年内蒙古建设厅网站1 准备SD卡8G以上#xff0c;16G更佳。编译过程中#xff0c;会耗用大量存储空间。一定在编译之前运行sudo raspi-config#xff0c;选择expand file system扩展SD卡的分区。如果空间不够#xff0c;会导致运行挂起。使用df -h可查看存储卡的可用容量。2 更新资源的索引清单…1 准备SD卡8G以上16G更佳。编译过程中会耗用大量存储空间。一定在编译之前运行sudo raspi-config选择expand file system扩展SD卡的分区。如果空间不够会导致运行挂起。使用df -h可查看存储卡的可用容量。2 更新资源的索引清单sudo apt-get update (从服务上下载索引清单)sudo apt-get upgrade (比较索引清单更新依赖关系)3 安装 python-devsudo apt-get install python-dev否则在编译SIP时,会提示 fatal error: Python.h: No such file or directory4 安装libqt4-dev否则在编译PyQt时会提示 ErrorMake sure you have a working Qt qmake on your PATH or use the -q argument to explicitly specify a working Qt qmake 5。依次安装SIP和PyQt。安装SIPwget http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.6/sip-4.16.6.tar.gztar vxf sip-4.16.6.tar.gzcd sip-4.16.6python configure.pymakemake install安装PyQt4#wget http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.10/PyQt-x11-gpl-4.10.tar.gzwget http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.10.4/PyQt-x11-gpl-4.10.4.tar.gz/downloadcp download PyQt-x11-gpl-4.10.4.tar.gztar vxf PyQt-x11-gpl-4.10.4tar.gzcd PyQt-xll-gpl-4.10.4python configure.pymakemake install5 运行PythonGUI的源代码进入PyQT下面的Examples目录使用python *.py方式运行。下面这张图是周末两天的成果虽说很是简陋但运行成功的一刻一切都值得了:)。