Python UnicodeDecodeError:&x27;ascii';编解码器可以';t解码Spyder 3.3.2中位置1的字节0x91:序号不在范围(128)内

Python UnicodeDecodeError:&x27;ascii';编解码器可以';t解码Spyder 3.3.2中位置1的字节0x91:序号不在范围(128)内,python,Python,我想从pickle文件加载数据时遇到问题。有人能帮我吗 folder = 'WavfileDataset/IHaveADream' GT_file = groundtruthfolder+os.sep+'GT_IHaveADream_'+tag+'.txt' if feature_extraction: data1,test_files1_auto = get_features_per_song(folder,GT_file) output = open('data1_pit

我想从pickle文件加载数据时遇到问题。有人能帮我吗

folder = 'WavfileDataset/IHaveADream'
GT_file = groundtruthfolder+os.sep+'GT_IHaveADream_'+tag+'.txt'

if feature_extraction:
    data1,test_files1_auto = get_features_per_song(folder,GT_file)

    output = open('data1_pitchGT.pkl', 'wb')
    pickle.dump(data1, output)
    output.close()

pkl_file = open('data1_pitchGT.pkl', 'rb') 
data1 = pickle.load(pkl_file)

GT1,test_files1 = get_onlyGT(folder, GT_file)
我得到这个错误:

UnicodeDecodeError:“ascii”编解码器无法解码位置中的字节0x91 1:序号不在范围内(128)


您需要查看GT_文件的格式是否正确,还需要提供出现此错误的行解决此问题您需要查看GT_文件的格式是否正确,还需要提供出现此错误的行解决此问题