# Installation issues

**URL:** <https://discourse.cogstack.org/t/installation-issues/308>\
**Category:** MedCAT\
**Created:** [May 7, 2024, 12:58pm UTC](https://discourse.cogstack.org/t/installation-issues/308 "2024-05-07T12:58:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alan](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@Alan](https://discourse.cogstack.org/u/Alan)\
**Post date:** [May 7, 2024, 12:58pm UTC](https://discourse.cogstack.org/t/installation-issues/308/1 "2024-05-07T12:58:51Z")

</div>

Hi

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

Following the instructions here: [Medical oncept Annotation Tool — MedCAT :latest documentation](https://medcat.readthedocs.io/en/latest/main.html#demo), pip install gives me this error:

> ModuleNotFoundError: No module named ‘distutils’

Following the instructions here: [medcat · PyPI](https://pypi.org/project/medcat/0.3.4.0/), 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.

---

<div class="post-metadata">

**Author:** ![mart.ratas](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@mart.ratas](https://discourse.cogstack.org/u/mart.ratas)\
**Post date:** [May 7, 2024, 2:53pm UTC](https://discourse.cogstack.org/t/installation-issues/308/2 "2024-05-07T14:53:27Z")

</div>

Hi.

Unfortunately, `medcat` does not yet support Python 3.12.  
This is mostly because `torch` [does not support python 3.12 yet](https://github.com/pytorch/pytorch/releases/tag/v2.3.0) and we rely on it.

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

---

<div class="post-metadata">

**Author:** ![Alan](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@Alan](https://discourse.cogstack.org/u/Alan)\
**Post date:** [May 7, 2024, 4:41pm UTC](https://discourse.cogstack.org/t/installation-issues/308/3 "2024-05-07T16:41:15Z")

</div>

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