“utils/spconv/spconv/geometry.h”: No such file or directory
See original GitHub issueI use this command to install mmcv-full
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.9.0/index.html
and find this problem
./mmcv/ops/csrc/pytorch/cpu\sparse_indice.cpp(16): fatal error C1083: 无法打开包括文件: “utils/spconv/spconv/geometry.h”: No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
When I install in win10 and Linux both meet this problem.
Thanks for replying!
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Error while installing fatal error: utils/spconv/spconv/geometry.h
Error while installing fatal error: utils/spconv/spconv/geometry.h: No such file or directory #7410. I'm doing a fresh installation of mmdetection. The steps ...
Read more >Issues-open-mmlab/mmcv - PythonTechWorld - Python 博客
“utils/spconv/spconv/geometry.h”: No such file or directory. 888. I use this command to install mmcv-full pip install mmcv-full -f ...
Read more >The mmrotate from open-mmlab - Coder Social Home
File "/home/ai/yumo/ship_det/mmrotate-main/train.py", line 171, in main ... fatal error: utils/spconv/spconv/geometry.h: No such file or directory
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This seems to be caused by the new version 1.4.6 of mmcv so using an older version should fix it. This worked for me:
pip install mmcv-full==1.3.9 -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.9.0/index.html
Something a bit newer like 1.4.2 should work too.Me on macOS too. I think the solution should be adding correcponding header files (spconv related ones for 3D detection) in MENIFEST.in, so that they can be included in the sdist package published to pypi.
Currently a workaround is to install MMCV from source, which is a git clone instead of a direct
pip install
.