.. _edipy_install:
EDIpy2 Install
==============
Anaconda
------------
We provide Linux and MacOS packages for the `Anaconda `_ distribution. Packages are available for Python version 3.10 and later. The `EDIpack2.0` package contains the `edipy2` python module as well as the `EDIpack2.0 `_ and `SciFortran `_ libraries.
Once a command-line tool such as `conda `_ or `mamba `_ is installed, an environment using one of the available python version can be created, and then the EDIpack2.0 package can be installed:
.. code-block:: shell
conda create -n edipack
conda activate edipack
conda install -c conda-forge -c edipack edipack2
the `edipy2` python module can then be directly imported.
Install with pip
---------------------
See the package page on `pypi `_ .
Install from source
---------------------
The python module `edipy2` requires the
* `SciFortran`_
* `EDIpack2.0`_
libraries to be installed beforehand, please see related documentation
to install such Fortran libraries. Once both are set up, the python module can be installed from the root repository folder via
.. code-block:: shell
pip install . --break-system-packages
The latter option may not be required in all cases, but it is in recent versions of Debian and OSX. Since no edipy2 package is provided by any distro, this will not create problems. If the user is using a virtual environment, the option is not necessary.