Python How python import packages Ref this article This is not whereis python Python search modules in (populated current path + $PYTHONPATH + sys.path) Use sys module to check sys.path Use imp module to manipulate import logic