Python - 068 : Locate a module in python

Publicado el: 25 julio 2023
en el canal de: The Digital Folks
875
14

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.


En esta página del sitio puede ver el video en línea Python - 068 : Locate a module in python de Duración hora minuto segunda en buena calidad , que subió el usuario The Digital Folks 25 julio 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 875 veces y le gustó 14 a los espectadores. Disfruta viendo!