Python ImportError: No module named wx

后端 未结 15 1809
余生分开走
余生分开走 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:51

    Generally, package names in the site-packages folder are intended to be imported using the exact name of the module or subfolder.

    If my site-packages folder has a subfolder named "foobar", I would import that package by typing import foobar.

    One solution might be to rename site-packages\wx-2.8-msw-unicode to site-packages\wx.

    Or you could add C:\Python27\Lib\site-packages\wx-2.8-msw-unicode to your PYTHONPATH environment variable.

提交回复
热议问题