以Windows为例,在安装好python后,打开cmd命令行,执行: pip install -U wxPython 更详细的内容见: https://wxpython.org/pages/downloads/index.html