-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Description
Originally reported by: stonebig (Bitbucket: stonebig, GitHub: stonebig)
Hi,
I'm using this to get list of current package.
pip.get_installed_distributions()
Unfortunately:
- it doesn't refresh if I add a package via another process,
- I didn't find an option
.refresh() - trying to trick by importing pip under a different name didn't work,
- so I currently use a complex workaround (launching another separate python session).
rbtcollins pointed me to pkg_resources API, here, but the document is obscure for me.
Could you spare a few minutes to give me an example on how to obtain the wished effect ?