import pickle # To save pickle.dump(model, "model.p") # To load again with open('model.p', 'r') as fp: model = pickle.load(fp)