Python module search path problem - Stack Overflow
stackoverflow.com › questions › 1523551Oct 06, 2009 · Running python with a -v flag makes imports highly visible, which can help. Another good technique is to place an. import pdb; pdb.set_trace () just before the import that you think is misbehaving, and examining sys.path, sys.modules (and possibly other advanced structures such as import hooks) at that point - is there a sys.modules ['foo ...