Is there any quick solution in Python to see the dependencies of each module?

for example, suppose there is a package , and there are many modules in the package. Is there any quick way to see which modules each module depends on?

add: it is possible to directly list the modules that each module depends on without having to open the file to view it separately.

Mar.09,2021

look at import. If you import it, you should rely on it (pep8 requires you not to import modules that you don't use)

Menu