Error:
In file included from /usr/lib/python3/dist-packages/torch/lib/include/torch/csrc/api/include/torch/python.h:7:0,
from /usr/lib/python3/dist-packages/torch/lib/include/torch/extension.h:6,
from csrc/flatten_unflatten.cpp:1:
/usr/lib/python3/dist-packages/torch/lib/include/torch/csrc/utils/pybind.h:6:10: fatal error: pybind11/pybind11.h: No such file or directory
#include <pybind11/pybind11.h>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Running setup.py install for apex ... error
Configuration:
Ubuntu 18.04, CUDA 10.1, Pytorch 1.0.1, Python 3.6.7
Also tried to pip install pybind as well, still no luck.
Fixed. sudo apt-get install python3-pybind11
Most helpful comment
Fixed. sudo apt-get install python3-pybind11