Python ImportError: No module named wx

后端 未结 15 1956
余生分开走
余生分开走 2020-12-13 05:56

Im sorry to ask this question again. I have searched and found endles repeats of it both on stackoverflow and also on general google search. Unfortunatly I just cant get my

15条回答
  •  渐次进展
    2020-12-13 06:49

    I had the same error today but I tried something and surprisingly it worked. In the site packages folder there will be a file named wx.pth. Open it using notepad and its contents would be like "wx-2.8-msw-unicode"

    It is basically the name of the folder containing wxpython. Delete this using Ctrl + A and copy the name of the folder from the site packages and paste it here even if it is the same.

    Sounds weird but maybe the original file contained a hidden character...

提交回复
热议问题