Can not import wxPython!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • josh001
    New Member
    • Jul 2008
    • 19

    Can not import wxPython!

    I have installed both Python and wxPython but when I type
    "import wx"
    into Python Shell it gives me the following error.

    IDLE 1.2.1
    >>> import wx

    Traceback (most recent call last):
    File "<pyshell#0 >", line 1, in <module>
    import wx
    ImportError: No module named wx


    Any ideas how to fix this?
  • Laharl
    Recognized Expert Contributor
    • Sep 2007
    • 849

    #2
    You have to make sure that the wx modules are part of your PYTHONPATH. There should be a readme somewhere in the module you can read. If not, I don't remember how to change the PYTHONPATH on a more permanent basis than sys.path.append ().

    Comment

    • josh001
      New Member
      • Jul 2008
      • 19

      #3
      It seems to be working now I just reinstalled wxPython and that seemed to do it.

      Comment

      Working...