I have a pickle file which is written by Windows, but I want to read it in macOs.
my code:
with open(file_path, 'rb') as file:
data = pickle.load(file)
then I get:
data = pickle.load(file)
ModuleNotFoundError: No module named 'copy_reg\r'
I guess it is because \r\n
in windows and \r
in mac, but i have no idea to deal with it