Fixing pip upgrade mechanism