Is pickle file of python cross-platform? -


I have created a small python script I saved the pickle file on Linux and then used it on windows and then it's Linux Used back but now that file is not working on Linux, but it is fully working on windows. This is because the dragon is a cos platform but not a pickle file. Is there a solution to this ???

Pickles of python are completely cross platform.

This may be due to EOL (end-of-line) differences between Windows and Linux.

Note: To pass the pickle among different versions, please open your pickle files in binary mode, when they write and read them, open () the "wb" and "rb" Use the mode. Python can cause problems, so try the same version on both platforms.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -