pickler

error in loading pickle

对着背影说爱祢 提交于 2021-01-24 08:44:27
问题 Not able to load a pickle file. I am using python 3.5 import pickle data=pickle.load(open("D:\\ud120-projects\\final_project\\final_project_dataset.pkl", "r")) TypeError: a bytes-like object is required, not 'str' . . Also tried: import pickle data=pickle.load(open("D:\\ud120-projects\\final_project\\final_project_dataset.pkl", "rb")) UnpicklingError: the STRING opcode argument must be quoted . . Same errors even when using with statements import pickle with open("D:\\ud120-projects\\final

error in loading pickle

半城伤御伤魂 提交于 2021-01-24 08:43:26
问题 Not able to load a pickle file. I am using python 3.5 import pickle data=pickle.load(open("D:\\ud120-projects\\final_project\\final_project_dataset.pkl", "r")) TypeError: a bytes-like object is required, not 'str' . . Also tried: import pickle data=pickle.load(open("D:\\ud120-projects\\final_project\\final_project_dataset.pkl", "rb")) UnpicklingError: the STRING opcode argument must be quoted . . Same errors even when using with statements import pickle with open("D:\\ud120-projects\\final

error in loading pickle

谁说胖子不能爱 提交于 2021-01-24 08:42:45
问题 Not able to load a pickle file. I am using python 3.5 import pickle data=pickle.load(open("D:\\ud120-projects\\final_project\\final_project_dataset.pkl", "r")) TypeError: a bytes-like object is required, not 'str' . . Also tried: import pickle data=pickle.load(open("D:\\ud120-projects\\final_project\\final_project_dataset.pkl", "rb")) UnpicklingError: the STRING opcode argument must be quoted . . Same errors even when using with statements import pickle with open("D:\\ud120-projects\\final