The pip resource checks whether the latest version is installed using essentially pip search pkg_name | grep -i INSTALLED.*latest. This can give false positives if you have one or more other related packages already installed, because pip search matches package names and descriptions. It doesn't seem to have an option for matching the package name exactly.
I observed this in practice when installing multiple Google API packages, for example:
The pip resource checks whether the latest version is installed using essentially
pip search pkg_name | grep -i INSTALLED.*latest
. This can give false positives if you have one or more other related packages already installed, becausepip search
matches package names and descriptions. It doesn't seem to have an option for matching the package name exactly.I observed this in practice when installing multiple Google API packages, for example:
And
google-api-python-client
spuriously matched a bunch of installed packages: