forked from pysit/pysit
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation Linux
Simon Legrand edited this page Oct 19, 2020
·
2 revisions
- Create conda environment for PySIT:
conda create -n pysitenv numpy scipy matplotlib pyamg
conda activate pysitenv- 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 mpichOtherwise pip will install it automatically as a dependence of mpi4py.
pip install mpi4py- 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 petscOtherwise 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- Install petsc4py
pip install petsc4py- Install PySIT
cd <pysit/folder>
pip install -e .