Installation issues

Hi

I’m getting issues when I try to install MedCAT.

Following the instructions here: Medical oncept Annotation Tool — MedCAT :latest documentation, pip install gives me this error:

ModuleNotFoundError: No module named ‘distutils’

Following the instructions here: medcat · PyPI, pip install gives me this error:

AttributeError: ‘dict’ object has no attribute ‘NUMPY_SETUP

I’m running Linux on a Macbook with an M1 processor. I’m running the pip commands inside a venv using Python 3.12.2.

I’d appreciate any help in resolving this, thanks.

Hi.

Unfortunately, medcat does not yet support Python 3.12.
This is mostly because torch does not support python 3.12 yet and we rely on it.

You should be fine installing medcat on Python 3.8, 3.9, 3.10, or 3.11.

Yes, reverting to an earlier version of Python has fixed the issue, thanks.