See an example of this fix here

Bug while installing new version (old unisnstalled) · Issue #1045 · pyrevitlabs/pyRevit