wxPython and Linux dependencies
John Salerno
johnjsal at NOSPAMgmail.com
Fri Jul 7 10:48:48 EDT 2006
Nick Vatamaniuc wrote:
> To see where Python is looking for libraries open an interactive Python
> prompt and type
>>>> import sys
>>>> print sys.path
After doing this you will see something like
'C:\\Python24\\lib\\site-packages\\wx-2.6-msw-ansi' (from my system)
in the list, otherwise it isn't finding wxPython. Also, probably just
looking at the version of Python you are using when the interactive
prompt starts up might give you a clue. If it's different than the
version you installed wxPython in, then that's why it isn't finding it.
(But I don't know if the version that the interactive prompt uses is
necessarily the version that will be used to run your program, assuming
you have multiple versions installed, so maybe these methods won't be
perfectly accurate. Not sure how it gets decided which version to use if
you have more than one, especially on Unix systems.)
More information about the Python-list
mailing list