Skip to content

Installation Linux

Simon Legrand edited this page Oct 19, 2020 · 2 revisions

PySIT installation on a Linux machine

  1. Create conda environment for PySIT:
conda create -n pysitenv numpy scipy matplotlib pyamg
conda activate pysitenv
  1. Install an MPI distribution and mpi4py

If you are administrator on your machine, official repos provide several implementations of MPI. You can install the one you prefer:

sudo apt install libopenmpi-dev 
# Or
sudo apt install mpich

Otherwise pip will install it automatically as a dependence of mpi4py.

pip install mpi4py
  1. Install petsc module and its dependencies

On Debian like distributions, petsc is in the official repo. If you are administrator on your machine, you can use your package manager to install it:

sudo apt install petsc

Otherwise petsc is also available in pip. Warning: You'll receive several error saying that petsc can't be built as a wheel, but pip should manage to install it anyway.

conda install petsc
  1. Install petsc4py
pip install petsc4py
  1. Install PySIT
cd <pysit/folder>
pip install -e .

Clone this wiki locally