python-2.7pipwxpython

How to install wxPython on python 2.7


enter image description herei'm having trouble installing wxpyhton on python 2.7. I attached the error command togetger.

I tried to install wxPython on python 2.7 by using pip install. But it was not working. So, i tried to find solution to solve this problem. But i couldn't.


Solution

  • The last release of wxPython compatible with Python 2.7 is version 4.0. The last release in 4.0 line is 4.0.7.post2. So install it with the command

    pip install -U "wxPython==4.0.7.post2"
    

    or

    pip install -U "wxPython < 4.1"
    

    (please note double quotes).