Closed
Description
Got error:
.../pytorch/torch/csrc/allocators.h:4:10: fatal error:
'type_traits' file not found
#include <type_traits>
^
In file included from torch/csrc/Size.cpp:4:
In file included from .../pytorch/torch/csrc/THP.h:37:
.../pytorch/torch/csrc/allocators.h:4:10: fatal error:
'type_traits' file not found
#include <type_traits>
Was able to fix this by adding -stdlib=libc++
to extra_compile_args
in setup.py
:
extra_compile_args = ['-std=c++11', '-Wno-write-strings', '-stdlib=libc++']
Metadata
Metadata
Assignees
Labels
No labels