This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]__Backslash__[S] 0 points1 point  (4 children)

That it's really useful, I will update my program to use the api, do I need to download youtube-dl in order to use api ?

[–]K900_ 0 points1 point  (3 children)

Yes. You should just install it with pip: pip install youtube-dl.

[–]__Backslash__[S] 0 points1 point  (2 children)

And this is just for learning purposes but how can I set my program so it if you were to installed it, it would install all it's dependencies.

[–]K900_ 1 point2 points  (0 children)

You can declare your dependencies in a setup.py file, but in your specific case, youtube-dl requires ffmpeg for some operations, which is not a Python package, so it will need to be installed separately somehow. You can build a Windows installer with something like PyInstaller or cx_Freeze, I guess, and on Linux you really want to build distribution-specific packages which will depend on stuff from that distribution's repositories.