fatal error: torch/extension.h
See original GitHub issue❓ 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 the torch/extension.h
found in the pytorch source codes.
However, there still has some missing files after I changed torch/extension.h
to torch/torch.h
, such like ATen/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?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (1 by maintainers)
Top GitHub Comments
I’ve fixed this issue by installing a stable version of pytorch instead of pytorch-nightly. Thx for the code.
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