22Installation
33============
44
5- FESTIM is installed in two steps:
6- 1. `Installing FEniCS `_ through Anaconda or Docker
7- 2. `Installing FESTIM `_ through pip on the FEniCS environment
8-
9- Installing FEniCS
10- -----------------
11-
12- FEniCS can be installed with Anaconda on MacOs and Linux.
13- In order to use the Anaconda distribution on Windows,
14- use the `Windows Subsystem for Linux <https://learn.microsoft.com/en-us/windows/wsl/install >`_.
15-
16- .. tip ::
17- You can install `WSL <https://learn.microsoft.com/en-us/windows/wsl/install >`_ by running
18- :code: `wsl --install ` on a command prompt window.
19- To launch into WSL, simply enter :code: `wsl `.
20-
21- `Visual Studio Code <https://code.visualstudio.com/ >`_ is the recommended IDE to
22- use with Windows due to the
23- `WSL extension <https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl >`_.
5+ Installing FESTIM with Conda
6+ ----------------------------
247
258First `install Anaconda <https://docs.continuum.io/anaconda/install >`_,
269
@@ -34,27 +17,56 @@ First `install Anaconda <https://docs.continuum.io/anaconda/install>`_,
3417 You can install other versions by replacing :code: `Anaconda3-2024.06-1-Linux-x86_64.sh `
3518 with another from `the official repository <https://repo.anaconda.com/archive/ >`_.
3619
37- then run the following commands ::
20+ FESTIM can be installed with Anaconda on MacOs and Linux ::
3821
3922 conda create -n festim-env
4023 conda activate festim-env
41- conda install -c conda-forge fenics numpy=1.24
24+ conda install -c conda-forge festim
4225
43- Alternatively, It can be installed using ` Docker < https://www.docker.com/ >`_ ::
26+ .. tip ::
4427
45- docker run -ti -v $(pwd):/home/fenics/shared quay.io/fenicsproject/stable:latest
28+ You can install the latest version of FESTIM by running::
4629
47- .. note ::
48- :code: `$(pwd) ` needs to be replaced by :code: `${PWD} ` on Windows
30+ conda install -c conda-forge festim
31+
32+ To install a specific version, run::
33+
34+ conda install -c conda-forge festim==[version]
4935
36+ with the desired version tag. For example::
5037
51- For more information on how to install FEniCS, see ` Download < https://fenicsproject.org/download/archive/ >`_ on the FEniCS website.
38+ conda install -c conda-forge festim==0.9
5239
40+ To upgrade FESTIM to the latest version, run::
5341
54- Installing FESTIM
55- -----------------
42+ conda install -c conda-forge festim --update-deps
5643
57- FESTIM can then be installed using pip::
44+ To uninstall FESTIM, run::
45+
46+ conda uninstall festim
47+
48+ Windows Subsystem for Linux
49+ ----------------------------
50+ In order to use the Anaconda distribution on Windows,
51+ use the `Windows Subsystem for Linux <https://learn.microsoft.com/en-us/windows/wsl/install >`_.
52+
53+ .. tip ::
54+ You can install `WSL <https://learn.microsoft.com/en-us/windows/wsl/install >`_ by running
55+ :code: `wsl --install ` on a command prompt window.
56+ To launch into WSL, simply enter :code: `wsl `.
57+
58+ `Visual Studio Code <https://code.visualstudio.com/ >`_ is the recommended IDE to
59+ use with Windows due to the
60+ `WSL extension <https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl >`_.
61+
62+
63+ Installing FESTIM with pip
64+ --------------------------
65+
66+ .. note ::
67+ FEniCS is required for the pip install to work. Consider installing it either with Conda, Docker, or from source.
68+
69+ FESTIM can be installed using pip::
5870
5971 pip install FESTIM
6072
@@ -74,20 +86,35 @@ To uninstall FESTIM, run::
7486
7587 pip uninstall FESTIM
7688
89+ Using Docker
90+ ------------
7791
78- Installing the ``fenicsx `` branch version
79- -------------------------------------------
92+ Alternatively, FESTIM can be installed using `Docker <https://www.docker.com/ >`_.
8093
81- This version of FESTIM is under development and is not yet available on PyPI.
94+ First create a docker container based on the FEniCS docker image::
95+
96+ docker run -ti -v $(pwd):/home/fenics/shared quay.io/fenicsproject/stable:latest
97+
98+ .. note ::
99+ :code: `$(pwd) ` needs to be replaced by :code: `${PWD} ` on Windows
100+
101+ .. note ::
102+ For more information on how to install FEniCS, see `Download <https://fenicsproject.org/download/archive/ >`_ on the FEniCS website.
103+
104+ Then install FESTIM using pip (see the `Installing FESTIM with pip `_ section above).
105+
106+
107+ Installing the ``2.0-alpha `` version
108+ ------------------------------------
109+
110+ This version of FESTIM is not production-ready but available as an alpha version.
111+ This version is developed on the ``fenicsx `` branch of the FESTIM repository.
82112It runs on ``dolfinx `` instead of ``fenics `` and can be installed on Linux and MacOS.
83113If you are on Windows, you can use the Windows Subsystem for Linux (simply follow the instructions above).
84114
85- Create a conda environment with `` dolfinx `` ::
115+ Install it with Conda ::
86116
87117 conda create -n festim-env
88118 conda activate festim-env
89- conda install -c conda-forge fenics-dolfinx
90-
91- Install the correct FESTIM version with::
119+ conda install -c conda-forge festim=2.0a0
92120
93- pip install git+https://github.com/FESTIM-dev/FESTIM@fenicsx
0 commit comments