When i try to run my script, which is just those two lines:
from pytube import YouTube
YouTube('http://youtube.com/watch?v=9bZkp7q19f0').streams.first().download()
i get the error:
ImportError: cannot import name 'YouTube' from 'pytube' (unknown location)
ive used the following documentation to install pytube: https://github.com/NFicano/pytube
but since i am using python3.8 i installed pytube3 using:
pip3 install pytube3
instead of:
pip install pytube
which does not throw errors from the module.
When double check if there is a "pytube" module directory in:
C:\Users\User\AppData\Local\Programs\Python\Python38\Lib\site-packages if found the directory: "\pytube" inside of it
when i use: pip install pytube3
i get the output:
Requirement already satisfied: pytube3 in c:\users\User\appdata\local\programs\python\python38\lib\site-packages (9.6.4)
Requirement already satisfied: typing-extensions in c:\users\User\appdata\local\programs\python\python38\lib\site-packages (from pytube3) (3.7.4.2)