Apex: Pybind11 not found

Created on 24 Apr 2019  路  1Comment  路  Source: NVIDIA/apex

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.

Most helpful comment

Fixed. sudo apt-get install python3-pybind11

>All comments

Fixed. sudo apt-get install python3-pybind11

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lemonhu picture lemonhu  路  3Comments

flymark2010 picture flymark2010  路  3Comments

Data-drone picture Data-drone  路  4Comments

TheRevanchist picture TheRevanchist  路  3Comments

dave-epstein picture dave-epstein  路  3Comments