import <package> print(<package>.__version__)
ex) import selenium print(selenium.__version__) import pandas as pd print(pd.__version__)