Ask HN: 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
e.g. the Python 3 script yt-dlp
or other ones alike on Github
$ pipdeptree -p yt-dlp
Warning!!! Possibly conflicting dependencies found:
* solidpython==1.1.1
- prettytable [required: ==0.7.2, installed: 3.1.1]
* wxPython==4.0.7.post2
- pillow [required: Any, installed: ?]
* yt-dlp==2022.5.18
- websockets [required: Any, installed: ?]
- brotli [required: Any, installed: ?]
- pycryptodomex [required: Any, installed: ?]
- mutagen
Unless you follow every include, and stack trace the whole shebang
Sidebar - this is true of any/all projects of sufficient size