Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find pickle version installed in my system

Tags:

python

pickle

I would like to know pickle version installed in my system.Can someone please tell me what should be the procedure to do this.

like image 794
JAPNEESH SINGH Avatar asked Jun 14 '17 15:06

JAPNEESH SINGH


People also ask

Do I need to install pickle in Python?

There is no need to install pickle module as it comes already installed along with Python 3.

What is pickle module in Python?

Pickle in Python is primarily used in serializing and deserializing a Python object structure. In other words, it's the process of converting a Python object into a byte stream to store it in a file/database, maintain program state across sessions, or transport data over the network.


2 Answers

Python 3

import pickle 
print(pickle.format_version)
like image 80
Jeff - Mci Avatar answered Sep 18 '22 15:09

Jeff - Mci


Python 2

import pickle 
print pickle.__version__
like image 27
Ahmed Avatar answered Sep 17 '22 15:09

Ahmed