import sys
from you_get import common as you_get #
directory = r'E:' #
url = 'https://www.youtube.com/watch?v=RslB5cuLPF0' #
sys.argv = ['you-get','-o',directory,url] #报错如下---------------------------------------------------------------------------
AttributeError
Traceback (most recent call last)<ipython-input-29-97f6897f0965> in <module>
1 import sys----> 2 from you_get import common as you_get #
3 4 directory = r'E:' #
5 url = 'https://www.youtube.com/watch?v=RslB5cuLPF0'
#D:\Python\Anaconda3\lib\site-packages\you_get\common.py in <module>
21 from .util.strings import get_filename, unescape_html
22 from . import json_output as json_output_---> 23 sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf8')
24 25 SITES = {AttributeError: 'OutStream' object has no attribute 'buffer'
添加回答
举报
0/150
提交
取消