解除定语

2024-05-23 14:35:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我刚从百度下载了一个酸洗数据集,我试图将其解压,但我收到了这个错误

AttributeError: Can't get attribute 'DataSet' on <module '__main__' from 'directory'>

如果你能帮助我,我将不胜感激

我尝试了下面的代码。
我使用“latin1”是因为我认为在我使用Python3时,pickle文件可能已经在Python2中转储了

with open('name.pkl','rb') as f:
    abc = pickle.load(f ,encoding='latin1')

AttributeError: Can't get attribute 'DataSet' on <module '__main__' from 'directory'>

Tags: 数据fromgetmainon错误attributecan