You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I encounter the fatal error when I try to install detectron2 in my PC.
In file included from /usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include/torch/python.h:12,
from /usr/lib/python3/dist-packages/torch/include/torch/extension.h:6,
from /home/biao/detectron2/detectron2/layers/csrc/vision.cpp:3:
/usr/lib/python3/dist-packages/torch/include/torch/csrc/utils/pybind.h:6:10: fatal error: pybind11/pybind11.h: No such file or directory
6 | #include <pybind11/pybind11.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/usr/lib/python3/dist-packages/torch/utils/cpp_extension.py:351: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi I encounter the fatal error when I try to install detectron2 in my PC.
In file included from /usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include/torch/python.h:12,
from /usr/lib/python3/dist-packages/torch/include/torch/extension.h:6,
from /home/biao/detectron2/detectron2/layers/csrc/vision.cpp:3:
/usr/lib/python3/dist-packages/torch/include/torch/csrc/utils/pybind.h:6:10: fatal error: pybind11/pybind11.h: No such file or directory
6 | #include <pybind11/pybind11.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/usr/lib/python3/dist-packages/torch/utils/cpp_extension.py:351: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Beta Was this translation helpful? Give feedback.
All reactions