Home > database >  Regarding obtaining the version information of libraries that a Python project imports
Regarding obtaining the version information of libraries that a Python project imports

Time:02-25

Given Python project, we can know the libraries it uses by checking the "import" part. But how can we know the version of a given library? For instance, the program has import pandas pd, how can we know the version of Pandas it uses?

CodePudding user response:

import pandas as pd
print(pd.__version__)
  • Related