error in loading pickle
问题 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