转自:http://blog.csdn.net/xiaodong193/article/details/51920283
wxpython在python 3.X下变成了wxpython ProjectPhoenix项目,其官方主页网址为https://wiki.wxpython.org/ProjectPhoenix。
换句话说,若想在python 3.X版本下使用wxpython,就必须安装wxpython ProjectPhoenix。
在线安装方法:
1、找到合适的版本:
文件下载地址:https://wxpython.org/Phoenix/snapshot-builds/
文件命名规则参考如下:
File naming conventions: ------------------------ - Files with the "*.whl" extension are binary wheel files (https://wheel.readthedocs.org/en/latest/). See below for more info. - Files with the "*.tar.gz" extension are compressed tar archives of the Phoenix and wxWidgets source code. - The "*-docs-*.tar.gz" files are compressed archives of the documentation. - The bulk of the filename follows the convensions for naming wheels (https://www.python.org/dev/peps/pep-0427/#file-name-convention). For example: wxPython_Phoenix-3.0.3.dev1549+fa6f31f-cp33-cp33m-macosx_10_6_intel.whl means: - This is the wxPython_Phoenix package - It is version 3.0.3.dev1549+fa6f31f (a development version, with the build number derived from the source control system.) - It is built for CPython version 3.3 - It is built for the macosx operating system - It is built for OSX version 10.6 or greater - It is built for Intel processors.
2、在win cmd命令窗口运行如下命令:
pip install https://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev2307+67242fb-cp34-cp34m-win32.whl