Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torch/extension.h: No such file or directory #6

Open
Cuiyirui opened this issue Jan 10, 2019 · 7 comments
Open

torch/extension.h: No such file or directory #6

Cuiyirui opened this issue Jan 10, 2019 · 7 comments

Comments

@Cuiyirui
Copy link

Cuiyirui commented Jan 10, 2019

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

@miaoshuyu
Copy link

i have the same problem,have you solved it?

@rxqy
Copy link

rxqy commented Jan 24, 2019

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

@butyuhao
Copy link

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

@omrysendik
Copy link

Same error here too. I am also using 1.0.1.

@liuli2017
Copy link

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.

@singal95
Copy link

solved with pytorch 1.4.0

@gopalkumr
Copy link

gopalkumr commented Apr 19, 2023

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants