Pip in many cases automatically installs packages to the user site-packages directory rather than the global one. site.getsitepackages() only returns global sites, so we also have to search the user site-packages dir (site.getusersitepackages()) to avoid missing dist-info errors.
Pip in many cases automatically installs packages to the user site-packages directory rather than the global one.
site.getsitepackages()
only returns global sites, so we also have to search the user site-packages dir (site.getusersitepackages()
) to avoid missing dist-info errors.Fixes an error similar to #81