Error: Failed building wheel for wxpython-phoenix

2019-07-07 19:49发布

问题:

I am trying to install wxpython (I have python 3.5.2(32Bit) and Windows 10(64Bit)) I tried :pip install wx and i get: Failed building wheel for wxpython-phoenix 2 times and then a big error line-->

I also tried installing Anaconda, but it did not help.How can I overcome the problem ?

回答1:

There's a lot of questions about failed installations on windows, probably because the packages are compiled when installed, and sometimes the compilation fail when the compiler is not properly configured. I admit I decided to let the specialized people handle it.

As a nice workaround, you can grab the already built distribution at the official wxpython website located here:

Python 3.5 32/64 bit windows:

  • https://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev2700+c524ed1-cp35-cp35m-win_amd64.whl
  • https://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev2700+c524ed1-cp35-cp35m-win32.whl

just download the .whl file and do for example:

C:\python35\scripts\pip install wxPython_Phoenix-3.0.3.dev2700+c524ed1-cp35-cp35m-win_amd64.whl