import wxPython 导致分段错误

import wxPython causes segmentation error

我正在尝试使用 wxPython,但无法导入它

我是 运行 Ubuntu 18.04.3 LTS。

如你所见,它在python 2.7版本中有效,但在3.6

中失败

有什么工具可以帮我调试这个吗?

我卸载了wx.Python:

sudo pip3 uninstall wxPython

重新安装:

sudo pip3 install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 wxPython

已修复!