我參考網路上的教學 但卻出現錯誤訊息
from pytube import YouTube
link = "https://www.youtube.com/watch?v=X8WkCAAD2gI"
yt = YouTube(link)
stream = yt.streams.first()
stream.download('./youtube')
執行後出現錯誤訊息
Traceback (most recent call last):
File "youaa.py", line 2, in <module>
from pytube import YouTube
File
"C:\Users\funfun\AppData\Local\Programs\Python\Python38\lib\site-packages\pytube\__init__.py",
line 16, in <module>
from pytube.streams import Stream
File
"C:\Users\funfun\AppData\Local\Programs\Python\Python38\lib\site-packages\pytube\streams.py",
line 17, in <module>
from pytube import extract
File
"C:\Users\funfun\AppData\Local\Programs\Python\Python38\lib\site-packages\pytube\extract.py",
line 7, in <module>
from pytube.compat import quote
ImportError: cannot import name 'quote' from 'pytube.compat'
(C:\Users\funfun\AppData\Local\Programs\Python\Python38\lib\site-packages\pytube\compat.py)
請問這樣是什麼意思 要怎麼解決
感謝