import sysfrom 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) in 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 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' |