invenio-records-lom is on PyPI so all you need is:
$ pip install invenio-records-lom
Normally, your instance will specify the correct dependency on your database and Elasticsearch version you use. If not, you can explict install the dependencies via the following extra install targets:
elasticsearch7
postgresql
For instance:
$ pip install invenio-records-lom[elasticsearch7]