[問題] pytube錯誤訊息

作者: LBJisGod5566 (神只要切入就是分數)   2020-02-26 10:21:14
我參考網路上的教學 但卻出現錯誤訊息
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)
請問這樣是什麼意思 要怎麼解決
感謝
作者: Virness   2020-02-26 11:46:00
pip uninstall pytube然後安裝 pip install pytube3版本問題

Links booklink

Contact Us: admin [ a t ] ucptt.com