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



原文地址:https://www.cnblogs.com/tibetanmastiff/p/4428714.html