# installation

**URL:** https://fenicsproject.discourse.group/c/installation/5.md

[Latest](https://fenicsproject.discourse.group/latest.md) · [Categories](https://fenicsproject.discourse.group/categories.md) · [Tags](https://fenicsproject.discourse.group/tags.md)

---

## [About the installation category](https://fenicsproject.discourse.group/t/about-the-installation-category/26)

<div class="topic-metadata">

**Author:** [@chris](https://fenicsproject.discourse.group/u/chris)\
**Replies:** 1\
**Last updated:** [November 22, 2023, 8:02am UTC](https://fenicsproject.discourse.group/t/about-the-installation-category/26 "2023-11-22T08:02:38Z")

</div>

This category is for discussions about installing FEniCS on different systems: Ubuntu packages Install from source Conda install MacOS Installation on HPC systems

---

## [Installation on MacOS with conda](https://fenicsproject.discourse.group/t/installation-on-macos-with-conda/19827)

<div class="topic-metadata">

**Author:** [@TimS](https://fenicsproject.discourse.group/u/TimS)\
**Replies:** 2\
**Last updated:** [September 16, 2026, 6:14pm UTC](https://fenicsproject.discourse.group/t/installation-on-macos-with-conda/19827 "2026-09-16T18:14:26Z")

</div>

I have installed conda today using the Anaconda3 distribution from Download Anaconda Distribution | Anaconda . Here is the conda info: active environment : base active env location : /opt/anaconda3 …

---

## [LEoPart won't compile on Mac](https://fenicsproject.discourse.group/t/leopart-wont-compile-on-mac/19650)

<div class="topic-metadata">

**Author:** [@Lev](https://fenicsproject.discourse.group/u/Lev)\
**Replies:** 4\
**Last updated:** [September 4, 2026, 4:42am UTC](https://fenicsproject.discourse.group/t/leopart-wont-compile-on-mac/19650 "2026-09-04T04:42:40Z")

</div>

(I’m not sure if this is the correct place to ask about this - I’ve seen that someone else has posted an issue on the LEoPart Github but I wanted to see if anyone has figured it out here.) I’m trying to install LEoPart …

---

## [Changing to different C-/C++-Compiler for the conda installation](https://fenicsproject.discourse.group/t/changing-to-different-c-c-compiler-for-the-conda-installation/17804)

<div class="topic-metadata">

**Author:** [@MathPhy42](https://fenicsproject.discourse.group/u/MathPhy42)\
**Replies:** 2\
**Last updated:** [July 30, 2026, 10:15am UTC](https://fenicsproject.discourse.group/t/changing-to-different-c-c-compiler-for-the-conda-installation/17804 "2026-07-30T10:15:28Z")

</div>

Is it possible to change the C/C++ Compiler used by ffcx, when installing fenicsx with conda? I’m working on Linux (openSUSE Leap 15.6) and have installed fenicsx via conda as described on Download | FEniCS Project, but …

---

## [Potential of a PyPi package](https://fenicsproject.discourse.group/t/potential-of-a-pypi-package/19440)

<div class="topic-metadata">

**Author:** [@conorbergin](https://fenicsproject.discourse.group/u/conorbergin)\
**Replies:** 6\
**Last updated:** [March 27, 2026, 3:13pm UTC](https://fenicsproject.discourse.group/t/potential-of-a-pypi-package/19440 "2026-03-27T15:13:06Z")

</div>

Is there a reason to not support pip? I understand Python packaging has been a complete disaster for many years, but recently things seem to be getting better, complex scientific libs have working pypi packages, uv is ve…

---

## [Installation of dolfinx\_mpc \> 0.10.0 via conda](https://fenicsproject.discourse.group/t/installation-of-dolfinx-mpc-0-10-0-via-conda/19588)

<div class="topic-metadata">

**Author:** [@tuderic](https://fenicsproject.discourse.group/u/tuderic)\
**Replies:** 6\
**Last updated:** [March 14, 2026, 5:17pm UTC](https://fenicsproject.discourse.group/t/installation-of-dolfinx-mpc-0-10-0-via-conda/19588 "2026-03-14T17:17:13Z")

</div>

Dear developers, is it possible for you to enable the installation of a newer version of dolfinx\_mpc via conda? In dolfinx\_mpc:v0.10.0 (relies on dolfinx:v0.10.0), I noticed some strange behavior with nested solvers wh…

---

## [Fenics and tIGAr installation](https://fenicsproject.discourse.group/t/fenics-and-tigar-installation/16605)

<div class="topic-metadata">

**Author:** [@Neofytos\_Neofytou](https://fenicsproject.discourse.group/u/Neofytos_Neofytou)\
**Replies:** 6\
**Last updated:** [January 28, 2026, 3:19pm UTC](https://fenicsproject.discourse.group/t/fenics-and-tigar-installation/16605 "2026-01-28T15:19:12Z")

</div>

Hello, I am currently working on Ubuntu 24.04.1 LTS with FEniCS version 2019.2.0.64.dev0 successfully installed. My objective is to use the tIGAr library for incorporating B-Splines as basis functions. My understanding i…

---

## [Import error of adios4dolfinx on HPC via spack installation](https://fenicsproject.discourse.group/t/import-error-of-adios4dolfinx-on-hpc-via-spack-installation/19392)

<div class="topic-metadata">

**Author:** [@steffenger](https://fenicsproject.discourse.group/u/steffenger)\
**Replies:** 4\
**Last updated:** [January 23, 2026, 5:13pm UTC](https://fenicsproject.discourse.group/t/import-error-of-adios4dolfinx-on-hpc-via-spack-installation/19392 "2026-01-23T17:13:21Z")

</div>

Hello all, I try to install adios4dolfinx on HPC besides dolfinx inside a spack env spack debug report \* \*\*Spack:\*\* 1.2.0.dev0 (https://github.com/spack/spack/commit/f38e413f807f0e7a0de47b7e7da1221d17e0225b) \* \*\*Builti…

---

## [Error running nonlinear mixed problem in Apptainer container (PETSc / dolfinx environment issue?)](https://fenicsproject.discourse.group/t/error-running-nonlinear-mixed-problem-in-apptainer-container-petsc-dolfinx-environment-issue/19357)

<div class="topic-metadata">

**Author:** [@pkrish11](https://fenicsproject.discourse.group/u/pkrish11)\
**Replies:** 5\
**Last updated:** [January 18, 2026, 2:27pm UTC](https://fenicsproject.discourse.group/t/error-running-nonlinear-mixed-problem-in-apptainer-container-petsc-dolfinx-environment-issue/19357 "2026-01-18T14:27:28Z")

</div>

I am encountering an error when running this minimal working example (see below) of a nonlinear mixed FEniCSx problem inside an HPC environment using Apptainer. I built the FEniCSx image inside the container, but I am un…

---

## [Basix, ufl and ffcx not found on docker image dolfinx\_mpc:v0.10.0](https://fenicsproject.discourse.group/t/basix-ufl-and-ffcx-not-found-on-docker-image-dolfinx-mpc-v0-10-0/18460)

<div class="topic-metadata">

**Author:** [@JvLuenen](https://fenicsproject.discourse.group/u/JvLuenen)\
**Replies:** 2\
**Last updated:** [December 11, 2025, 9:49am UTC](https://fenicsproject.discourse.group/t/basix-ufl-and-ffcx-not-found-on-docker-image-dolfinx-mpc-v0-10-0/18460 "2025-12-11T09:49:47Z")

</div>

I’ve been messing around all day to get the docker image of dolfinx\_mpc:v0.10.0 to work but so far without luck. Currently my Dockerfile is: FROM ghcr.io/jorgensd/dolfinx\_mpc:v0.10.0 #FROM dolfinx/dev-env:v0.10.0 # In…

---

## [Spack installation problem for Dolfinx 0.9.0 - compile options error?](https://fenicsproject.discourse.group/t/spack-installation-problem-for-dolfinx-0-9-0-compile-options-error/18421)

<div class="topic-metadata">

**Author:** [@BillS](https://fenicsproject.discourse.group/u/BillS)\
**Replies:** 15\
**Last updated:** [November 26, 2025, 4:40pm UTC](https://fenicsproject.discourse.group/t/spack-installation-problem-for-dolfinx-0-9-0-compile-options-error/18421 "2025-11-26T16:40:11Z")

</div>

Good day eveyone. I am trying to work through a Spack installation of Fenicsx 0.9.0 with petsc 3.24.1 on a Ubuntu 24.04 system. The compilation process finishes without a hitch, but running an example crashes. First …

---

## [Install fenicsx v0.9](https://fenicsproject.discourse.group/t/install-fenicsx-v0-9/18349)

<div class="topic-metadata">

**Author:** [@LGerard](https://fenicsproject.discourse.group/u/LGerard)\
**Replies:** 3\
**Last updated:** [November 9, 2025, 5:21pm UTC](https://fenicsproject.discourse.group/t/install-fenicsx-v0-9/18349 "2025-11-09T17:21:51Z")

</div>

Hello community, The new version of FEniCSx v1.0 was recently released, and I was wondering how to install version v0.9 on Ubuntu with conda or apt? Since I need to continue working with that version.

---

## [Spack Installation Issue for FEniCSx 0.9.0 (py-fenics-basix): CMake Version Mismatch](https://fenicsproject.discourse.group/t/spack-installation-issue-for-fenicsx-0-9-0-py-fenics-basix-cmake-version-mismatch/18330)

<div class="topic-metadata">

**Author:** [@Th0masLavigne](https://fenicsproject.discourse.group/u/Th0masLavigne)\
**Replies:** 3\
**Last updated:** [November 3, 2025, 5:31pm UTC](https://fenicsproject.discourse.group/t/spack-installation-issue-for-fenicsx-0-9-0-py-fenics-basix-cmake-version-mismatch/18330 "2025-11-03T17:31:49Z")

</div>

Dear all, I am attempting to install FEniCSx@0.9.0 on an HPC system using Spack. I’m running into a consistent issue during the installation of py-fenics-basix where the build process seems to ignore the Spack-managed o…

---

## [Problem with the creation of a spack environment containing dolfinx, dolfinx\_mpc and scifem](https://fenicsproject.discourse.group/t/problem-with-the-creation-of-a-spack-environment-containing-dolfinx-dolfinx-mpc-and-scifem/18302)

<div class="topic-metadata">

**Author:** [@Ergonsa](https://fenicsproject.discourse.group/u/Ergonsa)\
**Replies:** 2\
**Last updated:** [October 26, 2025, 8:44pm UTC](https://fenicsproject.discourse.group/t/problem-with-the-creation-of-a-spack-environment-containing-dolfinx-dolfinx-mpc-and-scifem/18302 "2025-10-26T20:44:03Z")

</div>

Hello everyone, as the title reads I am having difficulties in creating a spack environment containing the three packages. I am new to spack and, thus, I am sure something is not being done properly. Have anyone done so…

---

## [Dolfinx on MacOS conda env, cmake and boost version problem](https://fenicsproject.discourse.group/t/dolfinx-on-macos-conda-env-cmake-and-boost-version-problem/18261)

<div class="topic-metadata">

**Author:** [@Hawraa17](https://fenicsproject.discourse.group/u/Hawraa17)\
**Replies:** 4\
**Last updated:** [October 16, 2025, 6:12pm UTC](https://fenicsproject.discourse.group/t/dolfinx-on-macos-conda-env-cmake-and-boost-version-problem/18261 "2025-10-16T18:12:18Z")

</div>

I keep having trouble using cmake to install dolfinx, I keep getting some error with boost or basix version. I created a conda env, installed all dependencies, but now I have this error that I am not sure what to do anym…

---

## [Modifications on the source code within the docker container v0.9.0](https://fenicsproject.discourse.group/t/modifications-on-the-source-code-within-the-docker-container-v0-9-0/18271)

<div class="topic-metadata">

**Author:** [@chenyongxin](https://fenicsproject.discourse.group/u/chenyongxin)\
**Replies:** 1\
**Last updated:** [October 16, 2025, 7:39am UTC](https://fenicsproject.discourse.group/t/modifications-on-the-source-code-within-the-docker-container-v0-9-0/18271 "2025-10-16T07:39:55Z")

</div>

I need to make some modifications on the DOLFINx C++ source code and then compile it again (v0.9.0). The fastest way to do so is with the official docker image: dolfinx/dolfinx versions · fenics · GitHub . In the contain…

---

## [DOLFINx 0.9 tutorial example: functionspace(..., ("Lagrange", 1)) raises TypeError](https://fenicsproject.discourse.group/t/dolfinx-0-9-tutorial-example-functionspace-lagrange-1-raises-typeerror/18188)

<div class="topic-metadata">

**Author:** [@Ruth\_Lopez](https://fenicsproject.discourse.group/u/Ruth_Lopez)\
**Replies:** 2\
**Last updated:** [September 4, 2025, 7:40pm UTC](https://fenicsproject.discourse.group/t/dolfinx-0-9-tutorial-example-functionspace-lagrange-1-raises-typeerror/18188 "2025-09-04T19:40:13Z")

</div>

Context I recently installed the 0.9 stack from source and started going through tutorial examples. Despite matching versions, I kept hitting the same crash at fem.functionspace(...). My environment: dolfinx==0.9.0 …

---

## [Update with spack went wrong](https://fenicsproject.discourse.group/t/update-with-spack-went-wrong/18182)

<div class="topic-metadata">

**Author:** [@pierremrtt](https://fenicsproject.discourse.group/u/pierremrtt)\
**Replies:** 2\
**Last updated:** [September 2, 2025, 2:19pm UTC](https://fenicsproject.discourse.group/t/update-with-spack-went-wrong/18182 "2025-09-02T14:19:11Z")

</div>

Hell community, Following a recent merge in Dolfinx anable to use integration over vertices, I wanted to update my FEniCSx installation. Here is my spack.yaml file : spack: specs: - petsc@main +mpi +complex +mumps+…

---

## [Installing legacy FEniCS: Compatibility of ufl\_legacy 2022 with FEniCS 2019](https://fenicsproject.discourse.group/t/installing-legacy-fenics-compatibility-of-ufl-legacy-2022-with-fenics-2019/18163)

<div class="topic-metadata">

**Author:** [@rojin\_anbar](https://fenicsproject.discourse.group/u/rojin_anbar)\
**Replies:** 4\
**Last updated:** [August 29, 2025, 7:32pm UTC](https://fenicsproject.discourse.group/t/installing-legacy-fenics-compatibility-of-ufl-legacy-2022-with-fenics-2019/18163 "2025-08-29T19:32:27Z")

</div>

Hi everyone, I’m setting up legacy FEniCS 2019.1 on a new HPC system using Apptainer containers. I need to remain on the legacy stack because several other codes I use depend on it, so migrating to FEniCSx isn’t an opti…

---

## [How to install dolfinx\_mpc in Google colab?](https://fenicsproject.discourse.group/t/how-to-install-dolfinx-mpc-in-google-colab/18100)

<div class="topic-metadata">

**Author:** [@Mabel\_Lizzy\_Rajendra](https://fenicsproject.discourse.group/u/Mabel_Lizzy_Rajendra)\
**Replies:** 1\
**Last updated:** [August 15, 2025, 7:41pm UTC](https://fenicsproject.discourse.group/t/how-to-install-dolfinx-mpc-in-google-colab/18100 "2025-08-15T19:41:10Z")

</div>

I was able to include dolfinx in my google colab by using these lines: try: import dolfinx except ImportError: !wget "https://fem-on-colab.github.io/releases/fenicsx-install-release-real.sh" -O "/tmp/fenicsx-ins…

---

## [Docker dolfinx:v0.9.0 error "module '\_distutils\_hack' has no attribute 'add\_shim'"](https://fenicsproject.discourse.group/t/docker-dolfinx-v0-9-0-error-module-distutils-hack-has-no-attribute-add-shim/17842)

<div class="topic-metadata">

**Author:** [@dejac001](https://fenicsproject.discourse.group/u/dejac001)\
**Replies:** 2\
**Last updated:** [June 27, 2025, 11:39am UTC](https://fenicsproject.discourse.group/t/docker-dolfinx-v0-9-0-error-module-distutils-hack-has-no-attribute-add-shim/17842 "2025-06-27T11:39:53Z")

</div>

Hello! When importing numpy (and other libraries) in dolfinx/dolfinx:v0.9.0 on one of my windows computers, I get Attribute error: module '\_distutils\_hack' has no attribute 'add\_shim' but I don’t get the error on v0.8…

---

## [How to install adios4dolfinx on Spack?](https://fenicsproject.discourse.group/t/how-to-install-adios4dolfinx-on-spack/17841)

<div class="topic-metadata">

**Author:** [@Jujian\_Zhang](https://fenicsproject.discourse.group/u/Jujian_Zhang)\
**Replies:** 1\
**Last updated:** [June 25, 2025, 9:59pm UTC](https://fenicsproject.discourse.group/t/how-to-install-adios4dolfinx-on-spack/17841 "2025-06-25T21:59:47Z")

</div>

Hi, I am currently trying to install adios4dolfinx on Spack. Now I have already installed dolfinx, petsc, and adios2 through this: spack: # add package specs to the \`specs\` list specs: - fenics-dolfinx+petsc+adios…

---

## [Failed to installing fenicsx with spack due to parmetis installation failed](https://fenicsproject.discourse.group/t/failed-to-installing-fenicsx-with-spack-due-to-parmetis-installation-failed/17689)

<div class="topic-metadata">

**Author:** [@legend-of-wind](https://fenicsproject.discourse.group/u/legend-of-wind)\
**Replies:** 0\
**Last updated:** [June 3, 2025, 6:42am UTC](https://fenicsproject.discourse.group/t/failed-to-installing-fenicsx-with-spack-due-to-parmetis-installation-failed/17689 "2025-06-03T06:42:02Z")

</div>

Hello, I am installing fenics-dolfinx with spack according to the readme of dolfinx, but the installation failed due to the failed of building the library parmetis. I am using the WSL2 system in Windows 11. My installa…

---

## [Problem installing Rbnicsx](https://fenicsproject.discourse.group/t/problem-installing-rbnicsx/17673)

<div class="topic-metadata">

**Author:** [@bmitra265](https://fenicsproject.discourse.group/u/bmitra265)\
**Replies:** 1\
**Last updated:** [May 31, 2025, 4:38pm UTC](https://fenicsproject.discourse.group/t/problem-installing-rbnicsx/17673 "2025-05-31T16:38:26Z")

</div>

I am trying to install Rbnicsx in my fenicsx conda environment. I am using a MacBook with Apple Silicon. Currently running Fenicsx 0.9 I followed the installation instructions as stated in the previous thread and instal…

---

## [Recommended spack compiler flags](https://fenicsproject.discourse.group/t/recommended-spack-compiler-flags/17641)

<div class="topic-metadata">

**Author:** [@dajuno](https://fenicsproject.discourse.group/u/dajuno)\
**Replies:** 0\
**Last updated:** [May 20, 2025, 4:22pm UTC](https://fenicsproject.discourse.group/t/recommended-spack-compiler-flags/17641 "2025-05-20T16:22:40Z")

</div>

The spack installation instructions are: git clone https://github.com/spack/spack.git . ./spack/share/spack/setup-env.sh spack env create fenicsx-env spack env activate fenicsx-env spack add fenics-dolfinx+petsc+adios2 …

---

## [Fresh virtual environment installation GCC error Ubuntu 24.04](https://fenicsproject.discourse.group/t/fresh-virtual-environment-installation-gcc-error-ubuntu-24-04/17565)

<div class="topic-metadata">

**Author:** [@BlastPhemer](https://fenicsproject.discourse.group/u/BlastPhemer)\
**Replies:** 2\
**Last updated:** [May 6, 2025, 3:29pm UTC](https://fenicsproject.discourse.group/t/fresh-virtual-environment-installation-gcc-error-ubuntu-24-04/17565 "2025-05-06T15:29:39Z")

</div>

I have installed latest Anaconda on Ubuntu 24.04 and created new virtual environment as the ‘easiest’ method suggests : conda create -n fenicsx-env conda activate fenicsx-env conda install -c conda-forge fenics-dolfinx …

---

## [Installing v0.9.0 via Spack on HPC](https://fenicsproject.discourse.group/t/installing-v0-9-0-via-spack-on-hpc/17366)

<div class="topic-metadata">

**Author:** [@steffenger](https://fenicsproject.discourse.group/u/steffenger)\
**Replies:** 1\
**Last updated:** [April 16, 2025, 7:36am UTC](https://fenicsproject.discourse.group/t/installing-v0-9-0-via-spack-on-hpc/17366 "2025-04-16T07:36:31Z")

</div>

I tried to install v0.9.0 via spack. While i have no problems installing older versions (example v0.7.2) spack add fenics-dolfinx py-fenics-dolfinx spack install When i try to install v0.9.0: spack add fenics-dolfinx@…

---

## [Dolfinx with guix](https://fenicsproject.discourse.group/t/dolfinx-with-guix/17412)

<div class="topic-metadata">

**Author:** [@olivier](https://fenicsproject.discourse.group/u/olivier)\
**Replies:** 1\
**Last updated:** [April 16, 2025, 7:20am UTC](https://fenicsproject.discourse.group/t/dolfinx-with-guix/17412 "2025-04-16T07:20:06Z")

</div>

Hello, This announcement is to inform you that it is possible to install and use Dolfinx 0.9 with GUIX on linux distribution. The method is described in the installation section of http://mse.biosp.org/. Our next goal i…

---

## [FEniCS installation on docker](https://fenicsproject.discourse.group/t/fenics-installation-on-docker/16843)

<div class="topic-metadata">

**Author:** [@Habib-ur\_Rehmaan](https://fenicsproject.discourse.group/u/Habib-ur_Rehmaan)\
**Replies:** 5\
**Last updated:** [January 26, 2025, 6:23pm UTC](https://fenicsproject.discourse.group/t/fenics-installation-on-docker/16843 "2025-01-26T18:23:11Z")

</div>

Hi, I am trying to install and pull the FEniCS but its saying image is not available. Any suggestion on it, i want to use Fenics on docker( Widows) docker run -ti -v ${pwd}:/home/fenics/shared quay.io/fenicsproject/lat…

---

## [DOLFINx v0.9.0: \`dolfinx.common.has\_petsc4py\` Returns \`False\` Despite PETSc and petsc4py Working](https://fenicsproject.discourse.group/t/dolfinx-v0-9-0-dolfinx-common-has-petsc4py-returns-false-despite-petsc-and-petsc4py-working/17411)

<div class="topic-metadata">

**Author:** [@ZHEN\_SUN](https://fenicsproject.discourse.group/u/ZHEN_SUN)\
**Replies:** 1\
**Last updated:** [April 10, 2025, 6:48am UTC](https://fenicsproject.discourse.group/t/dolfinx-v0-9-0-dolfinx-common-has-petsc4py-returns-false-despite-petsc-and-petsc4py-working/17411 "2025-04-10T06:48:19Z")

</div>

Background I am installing DOLFINx v0.9.0 from source on Ubuntu 24.04 LTS with the goal of enabling MPI parallel support. I have successfully installed all dependencies, including PETSc 3.21.5 and petsc4py 3.21.5. Howeve…

[Next page](https://fenicsproject.discourse.group/c/installation/5.md?page=1)
