Skip to content

PyTolosa System Requirements

The following environment variable needs to be added to your ~/.bash_profile, or before executing PyTolosa:

Terminal window
export QT_QPA_PLATFORM='offscreen'

PyTolosa requires Python 3.7 or later.

The Python libraries and packages needed to use PyTolosa are:

  • Matplotlib - Creates static, animated, and interactive visualizations in Python
  • NumPy - Fundamental package for scientific computing in Python
  • SciPy - Collection of open source software for scientific computing in Python
  • CSV - Implements classes to read and write tabular data in CSV format
  • mpi4py - Provides bindings of the Message Passing Interface (MPI) standard, allowing any Python program to exploit multiple processors (for parallel post-processing)
  • argparse - Writes user-friendly command-line interfaces
  • termcolor - ANSII Color formatting for output in terminal

You should also install FFMPEG to create animations of post-treated results.

Terminal window
# Install core dependencies
pip install matplotlib numpy scipy
# Install optional dependencies for parallel processing
pip install mpi4py
# Install termcolor for colored terminal output
pip install termcolor
Terminal window
# Create a new environment
conda create -n pytolosa python=3.9
# Activate the environment
conda activate pytolosa
# Install dependencies
conda install matplotlib numpy scipy mpi4py
# Install FFMPEG
conda install ffmpeg
Terminal window
sudo apt-get update
sudo apt-get install ffmpeg
Terminal window
brew install ffmpeg
Terminal window
ffmpeg -version

To verify your Python environment:

Terminal window
python3 -c "import matplotlib, numpy, scipy; print('All core packages installed!')"

For MPI support:

Terminal window
python3 -c "import mpi4py; print('MPI support available!')"