# Installation issue: module not found

**URL:** https://openfhe.discourse.group/t/installation-issue-module-not-found/2290
**Category:** Library Questions
**Created:** [March 4, 2026, 9:57am UTC](https://openfhe.discourse.group/t/installation-issue-module-not-found/2290 "2026-03-04T09:57:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![helen](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@helen](https://openfhe.discourse.group/u/helen)
#### Post date: [March 4, 2026, 9:57am UTC](https://openfhe.discourse.group/t/installation-issue-module-not-found/2290/1 "2026-03-04T09:57:36Z")

</div>

I’m trying to install openfhe-python with pip and keep getting the following error: ModuleNotFoundError: No module named ‘openfhe.openfhe’. I’ve tried installing it with macOS/pip and with docker/pip. I’m using 3.14 with macOS and Ubuntu:24.04 and python 12 with docker. I’ve tried setting the python path variable but that didn’t fix the issue either. What do I have to do additional to the pip install command?

---

<div class="post-metadata">

### Author: ![dsuponitskiy-duality](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@dsuponitskiy-duality](https://openfhe.discourse.group/u/dsuponitskiy-duality)
#### Post date: [March 4, 2026, 2:22pm UTC](https://openfhe.discourse.group/t/installation-issue-module-not-found/2290/2 "2026-03-04T14:22:23Z")

</div>

The short answer is: **you should use Python 3.12 with OpenFHE**.

We build OpenFHE wheels using the default Python version for Ubuntu 24.04 which is Python 3.12.  
Because of that the published Ubuntu 24.04 wheels do not include binaries compatible with Python 3.14 which triggers this error:

`ModuleNotFoundError: No module named ‘openfhe.openfhe’`

I have Python 3.12 installed and ran this quick test:  
`/usr/bin/python3.12 -m venv ~/myenv312`  
`source ~/myenv312/bin/activate`  
`pip install openfhe`  
`pip list` (openfhe is the only installed package):

`Package Version`  
` ------- ------------`  
` openfhe 1.5.0.0.24.4`  
` pip 24.0`

After that you can simply run  
`python simple-integers.py`  
and setting PYTHONPATH is not needed.

---

<div class="post-metadata">

### Author: ![helen](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@helen](https://openfhe.discourse.group/u/helen)
#### Post date: [March 9, 2026, 3:06pm UTC](https://openfhe.discourse.group/t/installation-issue-module-not-found/2290/3 "2026-03-09T15:06:53Z")

</div>

Thanks a lot! That seems to work but I’ve tried to deploy it in a docker container and it seems to be very slow. Is it possible to install it directly on Mac? I’ve tried using Python3.12 there as well but keep getting the error.

---

<div class="post-metadata">

### Author: ![dsuponitskiy-duality](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@dsuponitskiy-duality](https://openfhe.discourse.group/u/dsuponitskiy-duality)
#### Post date: [March 19, 2026, 2:28pm UTC](https://openfhe.discourse.group/t/installation-issue-module-not-found/2290/4 "2026-03-19T14:28:21Z")

</div>

@helen We do not offer pre-built wheels for MacOS, but you should be able to build your own wheel from source on MacOS. See [the build instructions](https://github.com/openfheorg/openfhe-python?tab=readme-ov-file#building-from-source) for that.
