直接输入pip install -U wxPython安装会出现Failed building wheel for wxPython错误;在命令框下输入以下命令可行: pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 wxPython