I have a .pkl file which loads perfectly in my MAC OS but it wont load in a windows machine. I am using python 3 on anaconda. This is my code:
data=pickle.load(open("ydata1.pkl",'rb'))
Error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2295: ordinal not in range(128)
So I tried this:
data=pickle.load(open("ydata1.pkl",'r'))
But I get an error saying : a bytes-like object is required, not 'str'
Can anyone please tell me where I am going wrong?