If you don’t know why you’ve got fenics components (basix, ufl, ffcx, dolfinx) installed locally at .local/lib/python3.10/site-packages/
, then to remove doubt, delete everything in the local installation directory, the entire directory:
rm -rf ~/.local/lib/python3.10/site-packages/
In general, do not use pip to install python packages, since pip does not sufficiently manage the required package versions. Use your package manager only (apt
, in the case of Debian/Ubuntu systems)