pyFAI-average command not found

In this troubleshooting guide we learn how to fix pyFAI-average command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

pyFAI-average: command not found

or when using sudo you get the following error message

sudo: pyFAI-average: command not found

Solutions to pyFAI-average: command not found

How To Fix pyFAI-average: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pyFAI-average is provided by pyfai package.

pyfai is:

PyFAI is a Python library for azimuthal integration; it allows the conversion of diffraction images taken with 2D detectors like CCD cameras into X-Ray powder patterns that can be used by other software like Rietveld refinement tools (i.e. FullProf), phase analysis or texture analysis.

As PyFAI is a library, its main goal is to be integrated in other tools like PyMca, LiMa or EDNA. To perform online data analysis, the precise description of the experimental setup has to be known. This is the reason why PyFAI includes geometry optimization code working on “powder rings” of reference samples. Alternatively, PyFAI can also import geometries fitted with other tools like Fit2D.

PyFAI has been designed to work with any kind of detector with any geometry (transmission, reflection, off-axis, …). It uses the Python library FabIO to read most images taken by diffractometer.

To fix this problem, we can install more using the command below.

sudo apt-get -y install pyfai

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install pyfai.

sudo apt -y install pyfai

Or if you have aptitude installed you can use the following command.

sudo aptitude install pyfai

Summary

In this tutorial we learn how to fix pyFAI-average command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.