Search code examples
pythonpython-3.xdiscorddiscord.pyyoutube-dl

ModuleNotFoundException youtube-dl module is not recognized


i have installed the youtube-dl module via pip with pip install youtube-dl and it worked. I can use it in CMD but for some weird Reason Python says that the Module doesnt exist:

Extension 'cogs.music' raised an error: ModuleNotFoundError: No module named 'youtube_dl'

Solution

  • this problem usually happens when there is more than one python version on the computer, download the modules according to the version you want to use

    if this is didn't work for us do like bottom steps

    go your python libs path and look up you must got this ........\lib\site-packages\youtube-dl

    if you havn't got, go pypi site and download packets

    after that, take out this file to ......\lib\site-packages
    you should see like this :enter image description here

    or you can do like this:go your python path and open cmd and start writing:

    ......\python.exe -m pip install youtube_dl