ImportError: No module named wx
先检查下Python中是否有此模块
$ python
>>> import wx
ImportError: No module named wx wx模块的确没有安装。
要安装wxPython,先添加相应的环境。参考 Error Running Configure
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
sudo apt-get install -y libgtk2.0-dev libgtk-3-dev \ libjpeg-dev libtiff-dev \ libsdl1.2-dev libgstreamer-plugins-base0.10-dev \ libnotify-dev freeglut3 freeglut3-dev libsm-dev \ libwebkitgtk-dev libwebkitgtk-3.0-dev
安装wxPython 选择Installing wxPython from source
1 tar -xvzf wxPython-4.0.0b2.tar.gz 2 cd wxPython-4.0.0b2 3 python setup.py build 4 sudo su 5 python setup.py install 6 exit
检查下Python中是否有此模块
$ python >>> import wx
version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference(出现新问题了)
占行