It is probably because you are using the same cache directory for both installations.
Consider deleting the files in
or explicitly set another cache dir, as for instance done in
https://jorgensd.github.io/dolfinx-tutorial/chapter4/compiler_parameters.html#jit-parameters-and-visualization-using-pandas