How to Fix ModuleNotFoundError and ImportError
towardsdatascience.com › how-to-fixSep 13, 2020 · Step 1: sys.modules lookup. Initially, Python will try to search for the module’s name in sys.modules , which is a dictionary that maps module names to modules which have already been loaded. If the name is resolved successfully (which means that another module has already loaded it) will be then be made available to the local namespace ...