This worked for me on windows virtualenv ...
Go here first to get the wxpython binary wheel codes that match your system http://www.lfd.uci.edu/~gohlke/pythonlibs/#wxpython
Now on the virtualenv command line, make sure you have the wheel
>pip install wheel
Then install wxpython common
>pip install wxPython_common-3.0.2.0-py2-none-any.whl
Finally install wxpython itself
>pip install wxPython-3.0.2.0-cp27-none-win_amd64.whl
Now in the python virtualenv interpreter, check if the installation was successful by creating and running the example
>python ... >>> import wx >>> app = wx.App(False) >>> frame = wx.Frame(None, wx.ID_ANY, "Running from virtualenv!") >>> frame.Show(True) >>> app.MainLoop()
If a window appears and no error occurs, then you're fine :)
source share