Reputation: 4149
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
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