HACKER Q&A
📣 mardiyah

How do we know a Python script's dependencies entirely?


How do we know a Python script's dependencies recursively i.e. entirely ?

e.g. the Python 3 script yt-dlp

or other ones alike on Github


  👤 kryptn Accepted Answer ✓
I've used pipdeptree in the past.

https://github.com/naiquevin/pipdeptree


👤 warrenm
In short ... you don't

Unless you follow every include, and stack trace the whole shebang

Sidebar - this is true of any/all projects of sufficient size