That's kind of the point. We solved this problem decades ago. You have a system package manager that installs a system-wide copy of the package that everybody can use.
But now we encounter this broken nonsense because solved problems get unsolved by bad software.