Skip to main content


TIL that apt-installed Python packages are located in a different part of the file system than the pip-installed packages. This explained why the pip-installed certbot-plugin-gandi didn't work with apt-installed certbot.

#Debian #Python #pip #apt #sysadmin
Typical for any subssystems with their owwn non-distro installers, at least on Debian / apt-based systems: perl (CPAN), R (cran), python (pip), node.js (npm), etc.
@Doc Edward Morbius It makes sense to me now, but at the time I was thoroughly confused, especially since pip has access to the apt-installed packages and can use them as dependency, even though it cannot remove/reinstall them.
@Hypolite Petovan I think you can define python path(s) or environments for this. I'm rusty.

https://xkcd.com/1987/
And now, imagine that your system python install is a core dependency of your distribution...

You don't wanna mess with that. ;) (Funtoo Linux here;))