Locating a module means finding the directory from which the module is imported. When we import a module the Python interpreter searches for the module in the following manner:
First, it searches for the module in the current directory.
If the module isn’t found in the current directory, Python then searches each directory in the shell variable PYTHONPATH. The PYTHONPATH is an environment variable, consisting of a list of directories.
If that also fails python checks the installation-dependent list of directories configured at the time Python is installed.
Auf dieser Seite können Sie das Online-Video Python - 068 : Locate a module in python mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer The Digital Folks 25 Juli 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 875 Mal angesehen und es wurde von 14 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!