Installing on Ubuntu

Ubuntu packages are provided for recent versions of Ubuntu using a Personal Package Archive (PPA).

As of Cantera 2.6.0, packages are available for Ubuntu 20.04 (Focal Fossa), Ubuntu 21.10 (Impish Indri), and Ubuntu 22.04 (Jammy Jellyfish). To see which Ubuntu releases and Cantera versions are currently supported, visit

The available packages are:

  • cantera-python3 - The Cantera Python module for Python 3.

  • cantera-dev - Libraries and header files for compiling your own C++ and Fortran 90 programs that use Cantera.

  • cantera-common - Cantera data files and example programs

Note that the Matlab packages are not available from this archive; to install the Matlab packages on Ubuntu, you must install it using conda or compile the source code.


To add the Cantera PPA:

sudo apt install software-properties-common
sudo apt-add-repository ppa:cantera-team/cantera

To install all of the Cantera packages:

sudo apt install cantera-python3 cantera-dev

or install whichever subset you need by adjusting the above command. The cantera-common package is installed as a dependency if any other Cantera packages are selected.

If you plan on using Cantera from Python, you may also want to install IPython (an advanced interactive Python interpreter) and Matplotlib (a plotting library). Matplotlib is required to run some of the Python examples. These packages can be installed with:

sudo apt install python3-pip
pip3 install ipython matplotlib

Upgrading from an earlier Cantera version

If you already have Cantera installed from the cantera-team PPA, you can ensure that you have the latest available version installed by running:

sudo apt update
sudo apt install cantera-python3

If you also have the cantera-dev package installed, it should also be included on the apt install command line.

Installing pre-release Cantera versions

Sometimes, pre-release (alpha or beta) versions of Cantera which represent work toward the next Cantera release will be available for users who want to use cutting-edge features or test compatibility with the new version before it is released. To see the latest Cantera versions available from this PPA, visit

These packages can be installed by additionally enabling the cantera-team/cantera-unstable PPA and then upgrading Cantera:

sudo apt-add-repository ppa:cantera-team/cantera-unstable
sudo apt install cantera-python3 cantera-dev

You should also have the cantera-team/cantera PPA enabled, since the cantera-unstable PPA only includes development versions.

If you later want to remove the development version and return to the latest stable version, run the commands:

sudo apt-add-repository --remove ppa:cantera-team/cantera-unstable
sudo apt remove cantera cantera-common cantera-dev cantera-python3
sudo apt install cantera-python3 cantera-dev