Windows 七安装wxPython

Windows 7安装wxPython
Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (
Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

 

首先,根据Python的版本选择相应的VC版本,然后安装相应的编译器即可。比如:

 



 这个例子里的Python使用了Visual Studio C++ 2008编译的。所以,可以安装Visual Studio C++ 2008 Express版本。



然后,运行

"C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"

 

接下来就可以运行pip install wx了