Error: Failed building wheel for wxpython-phoenix while installing wx

北慕城南 提交于 2019-12-23 17:26:23

问题


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


来源:https://stackoverflow.com/questions/41432665/error-failed-building-wheel-for-wxpython-phoenix-while-installing-wx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!