h5fromtxt command not found

In this troubleshooting guide we learn how to fix h5fromtxt command not found error message

Introduction

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

h5fromtxt: command not found

or when using sudo you get the following error message

sudo: h5fromtxt: command not found

Solutions to h5fromtxt: command not found

How To Fix h5fromtxt: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu h5fromtxt is provided by h5utils package.

h5utils is:

HDF5 (Hierarchical Data Format 5) is a file format for storing scientific data. These tools allow converting other formats to HDF5 and to visualize HDF5 files. They include:

  • h5topng, which extracts a 2d slice of an HDF5 file and outputs a corresponding image in PNG format;
  • h5totxt, which extracts 2d slices and outputs comma-delimited text (suitable for import into a spreadsheet);
  • h5fromtxt, which converts simple text input into multi-dimensional numeric HDF5 datasets;
  • h5fromh4, which converts HDF4 data to HDF5;
  • h5tovtk, which converts HDF5 files to VTK files for visualization with VTK-aware programs;

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

sudo apt-get -y install h5utils

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

You can also use apt command to install h5utils.

sudo apt -y install h5utils

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

sudo aptitude install h5utils

Summary

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