DSblizzard
DSblizzard

Reputation: 4149

ImportError: No module named wx

When I write "import wx" in the Python interpreter there is no problem, but when I run script with that line from Windows console, error "ImportError: No module named wx" appears.

Result of commands

help()
modules

contains

wx
wxPython
wxversion

sys.path contains

'<site-packages path>\\wx-2.8-msw-unicode'

How to solve this problem?

Upvotes: 0

Views: 3862

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 799520

The Python used for the REPL is not the same as the Python the script is being run in. Print sys.executable to verify.

Upvotes: 2

Related Questions