在/etc/apt下的sources.list中加入以下两句
deb http://apt.wxwidgets.org/ lucid-wx main
deb-src http://apt.wxwidgets.org/ lucid-wx main
sudo apt-get update
sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n
sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n libwxgtk2.8-dev libgtk2.0-dev reference:http://blog.csdn.net/commshare/article/details/6172343
python的头文件
#! /usr/bin/env python
#coding=utf-8