user785099
user785099

Reputation: 5563

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

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?

Upvotes: 2

Views: 28

Answers (1)

LINDAAA
LINDAAA

Reputation: 36

import pandas as pd
print(pd.__version__)

Upvotes: 1

Related Questions