pip as an importable module?

Skip Montanaro skip.montanaro at gmail.com
Wed May 1 13:06:29 EDT 2019

> Pip doesn't have a programming API, so no, you can't do this. Having
> said that, it looks like pip-conflict-checker only uses
> `pip.get_installed_distributions`, and setuptools (pkg_resources,
> specifically) has an API that does this, so you could probably
> relatively easily fix the code to use that.

Thanks, that is indeed easily done.


More information about the Python-list mailing list