3 ms·
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
- warrenm 4y agoIn 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
- kryptn 4y agoI've used pipdeptree in the past. https://github.com/naiquevin/pipdeptree https://github.com/naiquevin/pipdeptree
- mardiyah 4y agoAn idea why it emits warning while the script is working perfect $ 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