Skip to content

PyAlbany

Kim Liegeois edited this page Jul 15, 2021 · 2 revisions
  • Python and Albany

Albany is using Python for 2 purposes:

For testing purpose, Albany requires at least:

  • python 2.7
  • scipy 1.2.1
  • numpy 1.15.1

For PyAlbany, SWIG and Mpi4Py are required too, more information on the installation of PyAlbany can be found in the PyAlbany README.

  • Testbed

To install the required python packages, it is recommended to do as follows:

pip3 install numpy --trusted-host=pypi.org --trusted-host=files.pythonhosted.org --user
pip3 install scipy --trusted-host=pypi.org --trusted-host=files.pythonhosted.org --user

For IBM machines, older version of numpy is required such as 1.19.2:

pip3 install numpy==1.19.2 --trusted-host=pypi.org --trusted-host=files.pythonhosted.org --user

To use matplotlib with a non-GUI backend on the testbed clusters to create plot stored as png images, it is recommended:

  • to install matplotlib as follows:
pip3 install --user pillow --global-option="build_ext" --global-option="--disable-jpeg"
pip3 install --user matplotlib
  • to initialize matplotlib as follows:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
Clone this wiki locally