# Installation FEniCSx with conda on macOs

**URL:** <https://fenicsproject.discourse.group/t/installation-fenicsx-with-conda-on-macos/8492>\
**Category:** installation\
**Created:** [June 9, 2022, 10:00am UTC](https://fenicsproject.discourse.group/t/installation-fenicsx-with-conda-on-macos/8492 "2022-06-09T10:00:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![philipplk](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/philipplk/32/3863_2.png) [@philipplk](https://fenicsproject.discourse.group/u/philipplk)\
**Post date:** [June 9, 2022, 10:00am UTC](https://fenicsproject.discourse.group/t/installation-fenicsx-with-conda-on-macos/8492/1 "2022-06-09T10:00:57Z")

</div>

Dear all,

I am new to using FEniCsx and I am eager to install it using conda.

I have a macOs machine.

Are there already installation guidelines as for legacy FEniCS?

Cheers  
Philipp

---

<div class="post-metadata">

**Author:** ![Calva](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@Calva](https://fenicsproject.discourse.group/u/Calva)\
**Post date:** [June 9, 2022, 10:18am UTC](https://fenicsproject.discourse.group/t/installation-fenicsx-with-conda-on-macos/8492/2 "2022-06-09T10:18:53Z")

</div>

See [here](https://github.com/FEniCS/dolfinx/blob/223fc96415f82fda7c606c5a6c1a054da0a4b42e/README.md).  
This is the updated README from a PR that has not been merged yet.

---

<div class="post-metadata">

**Author:** ![philipplk](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/philipplk/32/3863_2.png) [@philipplk](https://fenicsproject.discourse.group/u/philipplk)\
**Post date:** [June 9, 2022, 12:20pm UTC](https://fenicsproject.discourse.group/t/installation-fenicsx-with-conda-on-macos/8492/3 "2022-06-09T12:20:58Z")

</div>

Thanks a lot!

However, I will still have to install the c++ core and the dependencies before, isn’t it?

---

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [June 9, 2022, 12:34pm UTC](https://fenicsproject.discourse.group/t/installation-fenicsx-with-conda-on-macos/8492/4 "2022-06-09T12:34:47Z")

</div>

No, conda should take care of installation of all dependencies.

---

<div class="post-metadata">

**Author:** ![philipplk](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/philipplk/32/3863_2.png) [@philipplk](https://fenicsproject.discourse.group/u/philipplk)\
**Post date:** [June 9, 2022, 12:37pm UTC](https://fenicsproject.discourse.group/t/installation-fenicsx-with-conda-on-macos/8492/5 "2022-06-09T12:37:45Z")

</div>

Yes, I had to install “libffi” still via conda install.

Now, it works!

I guess, one should add it to the conda package, no?

---

<div class="post-metadata">

**Author:** ![minrk](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/minrk/32/3866_2.png) [@minrk](https://fenicsproject.discourse.group/u/minrk)\
**Post date:** [June 9, 2022, 1:20pm UTC](https://fenicsproject.discourse.group/t/installation-fenicsx-with-conda-on-macos/8492/6 "2022-06-09T13:20:14Z")

</div>

The missing cffi dependency should be added on conda-forge shortly: [dolfinx requires cffi by minrk · Pull Request #13 · conda-forge/fenics-dolfinx-feedstock · GitHub](https://github.com/conda-forge/fenics-dolfinx-feedstock/pull/13)

It’s also missing [from dolfinx itself](https://github.com/FEniCS/dolfinx/blob/0eab5343fe8674875f94d50706b033d84fa6d67b/python/setup.py#L15-L21).

---

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [June 9, 2022, 1:36pm UTC](https://fenicsproject.discourse.group/t/installation-fenicsx-with-conda-on-macos/8492/7 "2022-06-09T13:36:58Z")

</div>

PR for adding it to DOLFINx has been added: [Add CFFI to setup.py by jorgensd · Pull Request #2234 · FEniCS/dolfinx · GitHub](https://github.com/FEniCS/dolfinx/pull/2234)

---

<div class="post-metadata">

**Author:** ![philipplk](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/philipplk/32/3863_2.png) [@philipplk](https://fenicsproject.discourse.group/u/philipplk)\
**Post date:** [July 25, 2022, 2:17pm UTC](https://fenicsproject.discourse.group/t/installation-fenicsx-with-conda-on-macos/8492/8 "2022-07-25T14:17:33Z")

</div>

After an update dolfinx does not work properly anymore. It cannot find the JIT module:

> File ~/opt/anaconda3/envs/dolfinx/lib/python3.10/site-packages/ffcx/codegeneration/jit.py:78, in get\_cached\_module(module\_name, object\_names, cache\_dir, timeout):
> 
> ModuleNotFoundError: Unable to find JIT module.

Is anyone here familiar with that problem?  
Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [July 25, 2022, 3:02pm UTC](https://fenicsproject.discourse.group/t/installation-fenicsx-with-conda-on-macos/8492/9 "2022-07-25T15:02:24Z")

</div>

Could you try removing `~/.cache/fenics` if that is a folder on your computer.

---

<div class="post-metadata">

**Author:** ![philipplk](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/philipplk/32/3863_2.png) [@philipplk](https://fenicsproject.discourse.group/u/philipplk)\
**Post date:** [July 25, 2022, 3:15pm UTC](https://fenicsproject.discourse.group/t/installation-fenicsx-with-conda-on-macos/8492/10 "2022-07-25T15:15:48Z")

</div>

thanks a lot! that helped a lot.
