ubuntu下如何安装wxpython

1、运行时缺失wx库,如何安装

    Error:ImportError: No module named wx

    解决方法:sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n libwxgtk2.8-dev libgtk2.0-dev

2、在运行wx主程序时,出现如下错误:

    Unable to access the X Display, is $DISPLAY set properly?

   解决办法:export DISPLAY=:0



posted on 2015-04-15 15:28  袁军峰  阅读(1722)  评论(0编辑  收藏  举报

导航