Got this error while importing YouTube
File "/usr/local/lib/python3.5/dist-packages/pytube/__init__.py", line 16, in
from pytube.streams import Stream
File "/usr/local/lib/python3.5/dist-packages/pytube/streams.py", line 17, in
from pytube import extract
File "/usr/local/lib/python3.5/dist-packages/pytube/extract.py", line 7, in
from pytube.compat import quote
ImportError: cannot import name 'quote'
I think that is a problem with the pytube, uninstalling pytube and installing pytube3 solved the problem in my case.
Correct. Also, you will need to use Python 3.6 or above
Working now, switched from python 3.5 to 3.8 and installed pytube3. Thanks.
Most helpful comment
Working now, switched from python 3.5 to 3.8 and installed pytube3. Thanks.