The wxPython doesn't do well in my code?

After i installed the wxpython in windows PowerShell(admin). [Actually I asked copilot for help because i can’t install by typing ‘pip install wxpython’] I just want to test if the wxpython is functional. So I type these code:


And I run it. Problem came out, VS code said ‘Import “wx” could not be resolved’ :thinking:

What’s wrong with it? Hope someone can offer help. :pray:

oh if you want to know more, just ask under the post :slightly_smiling_face:
i believe that i should try again. :joy:

I assume you did not install wxPython.
Try this:

py -m pip install wxPython
2 Likes