print pandas. version from python script code example Example: print pandas version print(pandas.__version__)