Dolfinx install error in ubuntu

pip install --upgrade --force-reinstall dolfinx
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement dolfinx (from versions: none)
ERROR: No matching distribution found for dolfinx

Dolfinx is not a pip package, so I am not sure how you expect this to work. See
https://docs.fenicsproject.org/dolfinx/main/python/installation

Thanks for the reply and will check this out.