I have created a small python script of mine. I saved the pickle file on Linux and then used it on windows and then again used it back on Linux but now that file is not work
Maybe you don't open the file in binary mode? See this stackoverflow question