Site-packages content

Hello

I would like to know if there is a site to see the libraries part of site-packages on python 3.9 the reason is because I would like to validate the content because I found some differences on some machines I have and the operative system it is the same distribution on linux.

Thank you

Did you install the packages from your distros package manager or from PyPI?
What is the operating system you are on?

I know of inspector.pypi.io. It allows you to browse the content of the sdist and wheel files hosted on PyPI.

You can use importlib.metadata:

>>> import importlib.metadata
>>> for dist in importlib.metadata.distributions():
...     print(dist.name, dist.version)
...
certifi 2024.12.14
packaging 24.2
pytest 7.4.0
towncrier 24.8.0
pandas 2.2.3
PyGithub 2.5.0
urllib3 2.3.0
cffi 1.17.1
(...)