How to find “import name” of any package in Python?

Wheels I know this is an old question, but wheel packages have since been invented! Since a wheel is simply a zip file that gets extracted into the lib/site-packages directory, an examination of the contents of the wheel archive can give you the top level imports. >>> import zipfile >>> zf = zipfile.ZipFile(‘setuptools-35.0.2-py2.py3-none-any.whl’) >>> top_level … Read more