pyav command not found

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

Introduction

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

pyav: command not found

or when using sudo you get the following error message

sudo: pyav: command not found

Solutions to pyav: command not found

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

In Ubuntu pyav is provided by python3-av package.

python3-av is:

PyAV is a Pythonic binding for the FFmpeg libraries, aiming to provide all of the power and control of the underlying library, but manage the gritty details as much as possible.

PyAV is for direct and precise access to your media via containers, streams, packets, codecs, and frames. It exposes a few transformations of that data, and helps you get your data to/from other packages (e.g. Numpy and Pillow).

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

sudo apt-get -y install python3-av

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

You can also use apt command to install python3-av.

sudo apt -y install python3-av

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

sudo aptitude install python3-av

Summary

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