Python ImportError: No module named wx

Luke Bream picture Luke Bream · Dec 22, 2011 · Viewed 150.6k times · Source

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 system sorted.

I have the following:

C:\Python27\Lib\site-packages\wx-2.8-msw-unicode

this folder contains the wx folder and also wx & wxPython folders which each contain the _init_.py files

When I import wx I get the error message "no module named wx"

What do I need to do in order to get Python to find the relevant files to allow me to "import wx" succesfully

Answer

Giuseppe Urso picture Giuseppe Urso · Mar 25, 2015

Ubuntu:

sudo apt-get install python-wxtools