Is pickle file of python cross-platform?

Python’s pickle is perfectly cross-platform.

This is likely due to EOL (End-Of-Line) differences between Windows and Linux. Make sure to open your pickle files in binary mode both when writing them and when reading them, using open()’s “wb” and “rb” modes respectively.

Note: Passing pickles between different versions of Python can cause trouble, so try to have the same version on both platforms.

Leave a Comment