How to install dolfinx without affecting the old version of dolfin

Which was the same answer you already got it at How to import a Gmsh-generated quad mesh geo file into FEniCS? - #8 by francesco-ballarin

I do understand wanting to create a separate question, since it was indeed unrelated to the original question in the other topic, but in future at least link back to any answer you had already received.