DCNv2 icon indicating copy to clipboard operation
DCNv2 copied to clipboard

torch/extension.h: No such file or directory

Open Cuiyirui opened this issue 6 years ago • 7 comments

When I compiling in my Ubuntu system. It released an error, said: DCNv2-master/src/cpu/vision.h:2:29: fatal error: torch/extension.h: No such file or directory There is no file named "torch" in above mentioned path, How can I solve the question

Cuiyirui avatar Jan 10 '19 03:01 Cuiyirui

i have the same problem,have you solved it?

miaoshuyu avatar Jan 10 '19 06:01 miaoshuyu

Which version of pytorch are you using? If you are using pytorch 0.4, you need to git checkout to the 0.4 branch https://github.com/CharlesShang/DCNv2#note

rxqy avatar Jan 24 '19 01:01 rxqy

I‘m using the 1.0.1,and get the following problem. Very confusing. fatal error: cusparse.h: No such file or directory

butyuhao avatar Mar 21 '19 13:03 butyuhao

Same error here too. I am also using 1.0.1.

omrysendik avatar Aug 11 '19 17:08 omrysendik

I solved this problem. I run shell under pytorch 0.4, which caused this error. Because i forgot to activate my conda environment, pytorch 1.01.

liuli2017 avatar Aug 31 '19 02:08 liuli2017

solved with pytorch 1.4.0

singal95 avatar Mar 25 '20 09:03 singal95

@singal95 can you Please help me, I installed pytorch=1.4.0 but now i'm getting diffrent error

Traceback (most recent call last): File "setup.py", line 2, in <module> from torch.utils.cpp_extension import BuildExtension, CUDAExtension File "E:\anaconda\envs\py38\lib\site-packages\torch\__init__.py", line 81, in <module> from torch._C import * ImportError: DLL load failed while importing _C: The specified module could not be found.

image

gopalkumr avatar Apr 19 '23 10:04 gopalkumr