Python ImportError: No module named wx

后端 未结 15 1812
余生分开走
余生分开走 2020-12-13 05:56

Im sorry to ask this question again. I have searched and found endles repeats of it both on stackoverflow and also on general google search. Unfortunatly I just cant get my

相关标签:
15条回答
  • 2020-12-13 06:35

    For Windows and MacOS, Simply install it with pip

    pip install -U wxPython
    

    Reference: Official site

    0 讨论(0)
  • 2020-12-13 06:35

    I'm on 64-bit Windows 7 and went to:

    https://wxpython.org/

    Then downloaded the exe for my system, installed it, and it worked for me.

    0 讨论(0)
  • 2020-12-13 06:38

    Make sure you choose the right project intepreter in the compiler. I used the Pycharm, and I encountered the same problem. And it was solved by choose the right intepreter. Thisvideo may help you.

    0 讨论(0)
  • 2020-12-13 06:40

    Just open your terminal and run this command thats for windows users pip install -U wxPython

    for Ubuntu user you can use this

    pip install -U \
    -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 \
    wxPython
    
    0 讨论(0)
  • 2020-12-13 06:42

    Download the .whl file from this link.

    The name of the file is: wxPython‑3.0.2.0‑cp27‑none‑win32.whl for Windows 32 bit and python 2.7 and wxPython‑3.0.2.0‑cp27‑none‑win_amd64.whl for Windows 64 bit and python 2.7.

    Then in the command prompt: pip install location-of-the-above-saved-file

    0 讨论(0)
  • 2020-12-13 06:46

    In fedora you can use following command to install wx

    pip install -U \
      -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 \
      wxPython
    
    0 讨论(0)
提交回复
热议问题