Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Use importlib metadata to check installed packages #24114
I just saw this tweet with a new feature for Python 3.8: importlib.metadata. A module that gives information about packages that are installed. In the comments of the tweet I noticed that a version of that module is already available on PyPI, so I went ahead and migrated our own hackish implementation to the official one.
If the code does not interact with devices: