I would like to import youtube-dl into my code for a discord.py bot I have not understood how to install the youtube-dl package on my pc. (I downloaded the .exe file etc, but I don't understand).
Thanks in advance for any help given.
I would like to import youtube-dl into my code for a discord.py bot I have not understood how to install the youtube-dl package on my pc. (I downloaded the .exe file etc, but I don't understand).
Thanks in advance for any help given.
Installing packages for Python goes via pip
most of the time, execute this command in your terminal:
pip install youtube_dl
For more info about importing into your python application please refer to this link
You need to execute pip install youtube-dl
in your terminal
After that, you can import the module with from youtube-dl import *