I made a simple wxPython script that simply shows a window. When I run it in my normal python 2.7.3 with wxPython (import wx
), it works fine. But when I run it in a virtualenv, I get the following:
Traceback (most recent call last):
File "/Users/student/Desktop/text.py", line 3, in <module>
class mainWindow(wx.Frame):
AttributeError: 'module' object has no attribute 'Frame'
Why is this? I have wx installed (./pip install wx
in my virtualenv's bin folder)
I that that these steps worked for me a while ago...