pybind11-config command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pybind11-config: command not found
or when using sudo you get the following error message
sudo: pybind11-config: command not found
Solutions to pybind11-config: command not found
How To Fix pybind11-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pybind11-config is provided by python3-pybind11 package.
python3-pybind11 is:
pybind11 is a lightweight header library that exposes C++ types in Python and vice versa, mainly to create Python bindings of existing C++ code. Its goals and syntax are similar to the excellent Boost.Python library by David Abrahams: to minimize boilerplate code in traditional extension modules by inferring type information using compile-time introspection.
This package provides pybind11 for Python 3.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-pybind11
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-pybind11.
sudo apt -y install python3-pybind11
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-pybind11
Summary
In this tutorial we learn how to fix pybind11-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.