I'm new to wxPython. I just installed Python 2.7.9 and wxPython for 2.7 on my Windows 7. When I try to run the "helloworld" file
#!/usr/bin/env python
import wx
app = wx.App(False) # Create a new app, don't redirect stdout/stderr to a window.
frame = wx.Frame(None, wx.ID_ANY, "Hello World") # A Frame is a top-level window.
frame.Show(True) # Show the frame.
app.MainLoop()
from the official website.I got this error
c:\Workspace>python hellowword.py
Traceback (most recent call last):
File "hellowword.py", line 2, in <module>
import wx
ImportError: No module named wx
I've looked through other posts on stacksoverflow, e.g.Wx not importing Can't load packages due to 'No module named wx' error
But none of them worked.
I've already added directory of wxPython to path "C:\Python27\Lib\site-packages". Still failed.
Could anyone help me with this, please?
Thanks in advance!