Python ImportError: No module named wx
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
Solution 1:
Ubuntu:
sudo apt-get install python-wxtools
Solution 2:
Windows:
Go to
C:\Python27\Lib\site-packages\
find the folderwx-<version>-msw
or similarMove the
wx
from the above folder toC:\Python27\Lib\site-packages\