paddlepalm安装中报错
Created by: skywalk163
环境:aistudio 高端版 python3.7 PaddlePaddle 1.7.1
在命令行里安装之后测试正常,在notebook里面测试就报错。 在notebook里面运行:from paddlepalm import downloader
---------------------------------------------------------------------------AttributeError Traceback (most recent call last) in ----> 1 from paddlepalm import downloader 2 downloader.ls('pretrain') ~/extlib/paddlepalm/init.py in 5 from . import lr_sched 6 from . import backbone ----> 7 from . import reader 8 from . import head 9 ~/extlib/paddlepalm/reader/init.py in 1 ----> 2 from .cls import ClassifyReader 3 from .match import MatchReader 4 from .seq_label import SequenceLabelReader 5 from .mrc import MRCReader ~/extlib/paddlepalm/reader/cls.py in 15 16 from paddlepalm.reader.base_reader import Reader ---> 17 from paddlepalm.reader.utils.reader4ernie import ClassifyReader as CLSReader 18 19 ~/extlib/paddlepalm/reader/utils/reader4ernie.py in 40 if six.PY3: 41 import io ---> 42 sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8') 43 sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding='utf-8') 44 AttributeError: 'OutStream' object has no attribute 'buffer'