pmg command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pmg: command not found
or when using sudo you get the following error message
sudo: pmg: command not found
Solutions to pmg: command not found
How To Fix pmg: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pmg is provided by python3-pymatgen package.
python3-pymatgen is:
Pymatgen (Python Materials Genomics) is a robust, open-source Python library for materials analysis. These are some of the main features:
1.Highly flexible classes for the representation of Element, Site, Molecule, Structure objects.
Extensive input/output support, including support for VASP (http://cms.mpi.univie.ac.at/vasp/), ABINIT (http://www.abinit.org/), CIF, Gaussian, XYZ, and many other file formats.
Powerful analysis tools, including generation of phase diagrams, Pourbaix diagrams, diffusion analyses, reactions, etc.
Electronic structure analyses, such as density of states and band structure.
Integration with the Materials Project REST API, Crystallography Open Database.
This package provides the pymtgen module for Python 3.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-pymatgen
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-pymatgen.
sudo apt -y install python3-pymatgen
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-pymatgen
Summary
In this tutorial we learn how to fix pmg command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.