SyntaxFix
Write A Post
Hire A Developer
Questions
In Python 3.8 version there is a new metadata module in importlib package, which can do that as well.
metadata
importlib
Here is an example from docs:
>>> from importlib.metadata import version >>> version('requests') '2.22.0'