-
Notifications
You must be signed in to change notification settings - Fork 2.5k
fatal error: torch/extension.h #44
Comments
torch_nightly? |
hey guy.I have met the same problem too.Have you found the right way to fix it ?thanks a lot |
I think we should install torch_nightly, not the stable one. |
ok ,I will have a try .Thanks for your answer |
Yes, you should install the preview (nightly) version of PyTorch, which corresponds to PyTorch 1.0 I'm closing the issue, but let me know if you still have issues even after installing the nightly version |
I've fixed this issue by installing a stable version of pytorch instead of pytorch-nightly. Thx for the code. |
❓ Questions and Help
Hello greate guys,
I followed the installation instructions in INSTALL.md with a little modification by install pythoch through pip.
But when I run the final command to install the pytorch detection, it gave me a
fatal error: torch/extension.h: No such file or directory.
Then I found that there has a
torch/torch.h
file in INCLUDE_PATH (site-packages/torch/lib/include/), which its content is same as thetorch/extension.h
found in the pytorch source codes.However, there still has some missing files after I changed
torch/extension.h
totorch/torch.h
, such likeATen/cuda/CUDAContext.h
.Follows are my installation commands:
$ virtualenv -p python3 maskrcnn-benchmark
$ source maskrcnn-benchmark/bin/activate
$ pip install ipython ninja yacs cython matplotlib
$ pip install http://download.pytorch.org/whl/cu80/torch-0.4.1-cp35-cp35m-linux_x86_64.whl
$ pip install torchvision
then follows the install pycocotools and pytorch detection.
Is the installation wrong?
The text was updated successfully, but these errors were encountered: