I am trying to read a pickle file using the following code, but it gives error: "ValueError: unsupported pickle protocol: 5". How can I solve this error?
with open('existing_videos.pkl', 'rb') as fh: existing_vids = pickle.load(fh)
It seems that your pickle file 'existing_videos.pkl' was saved using protocol=5 and Python 3.5.3 does not support pickle protocol=5. You can fix the error by doing the followings:
pip install pickle5
import pickle5 as pickle