简体   繁体   中英

Can't find the wxPython module

I'm trying to use wxPython module:

import wxPython
verw = 0.1
print("test con v", verw)

but in the result I get this:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-387a974d6a30> in <module>
      1 
----> 2 import wxPython
      3 
      4 
      5 verw = 0.1

ModuleNotFoundError: No module named 'wxPython'

在此处输入图片说明

You need to import wx only.

import wx

app = wx.App()

It seems the module you should install is wx and not wxpython .

See docs: https://wxpython.org/pages/overview/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM