pip -r install requirements.txt-error
ERROR: Command errored out with exit status 1: command: /home/zepho/anaconda3/envs/face/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-e9f1m_k1/setup.py'"'"'; file='"'"'/tmp/pip-req-build-e9f1m_k1/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-jg79gevt/install-record.txt --single-version-externally-managed --compile --install-headers /home/zepho/anaconda3/envs/face/include/python3.6m/pointnet2-ops cwd: /tmp/pip-req-build-e9f1m_k1/ Complete output (51 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/pointnet2_ops copying pointnet2_ops/pointnet2_modules.py -> build/lib.linux-x86_64-3.6/pointnet2_ops copying pointnet2_ops/pointnet2_utils.py -> build/lib.linux-x86_64-3.6/pointnet2_ops copying pointnet2_ops/init.py -> build/lib.linux-x86_64-3.6/pointnet2_ops copying pointnet2_ops/_version.py -> build/lib.linux-x86_64-3.6/pointnet2_ops running egg_info writing pointnet2_ops.egg-info/PKG-INFO writing dependency_links to pointnet2_ops.egg-info/dependency_links.txt writing requirements to pointnet2_ops.egg-info/requires.txt writing top-level names to pointnet2_ops.egg-info/top_level.txt reading manifest file 'pointnet2_ops.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'pointnet2_ops.egg-info/SOURCES.txt' creating build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src creating build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/ball_query.h -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/cuda_utils.h -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/group_points.h -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/interpolate.h -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/sampling.h -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/utils.h -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/include creating build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/ball_query.cpp -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/ball_query_gpu.cu -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/bindings.cpp -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/group_points.cpp -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/group_points_gpu.cu -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/interpolate.cpp -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/interpolate_gpu.cu -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/sampling.cpp -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/sampling_gpu.cu -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src running build_ext building 'pointnet2_ops._ext' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/pointnet2_ops creating build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src creating build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src gcc -pthread -B /home/zepho/anaconda3/envs/face/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-e9f1m_k1/pointnet2_ops/_ext-src/include -I/home/zepho/anaconda3/envs/face/lib/python3.6/site-packages/torch/include -I/home/zepho/anaconda3/envs/face/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/zepho/anaconda3/envs/face/lib/python3.6/site-packages/torch/include/TH -I/home/zepho/anaconda3/envs/face/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-10.1/include -I/home/zepho/anaconda3/envs/face/include/python3.6m -c pointnet2_ops/_ext-src/src/group_points.cpp -o build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/group_points.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /tmp/pip-req-build-e9f1m_k1/pointnet2_ops/_ext-src/include/utils.h:2:0, from pointnet2_ops/_ext-src/src/group_points.cpp:2: /home/zepho/anaconda3/envs/face/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:30: fatal error: cuda_runtime_api.h: no such file or directory #include <cuda_runtime_api.h> ^ compilation terminated. error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /home/zepho/anaconda3/envs/face/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-e9f1m_k1/setup.py'"'"'; file='"'"'/tmp/pip-req-build-e9f1m_k1/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-jg79gevt/install-record.txt --single-version-externally-managed --compile --install-headers /home/zepho/anaconda3/envs/face/include/python3.6m/pointnet2-ops Check the logs for full command output.
I have the same problem , did you solve it? if you did, could you please share how to solve it, thanks !
I have the same problem , did you solve it? if you did, could you please share how to solve it, thanks !
The indication is quite clear: the cuda_runtime_api.h is missing. Try to search for the file (should be in your cuda 10.2 folder if you are using cuda 10.1) and build a link using sudo ln -s /path/to/your/folder/cuda_runtime_api.h /usr/include/cuda_runtime_apt.h
https://github.com/erikwijmans/Pointnet2_PyTorch/issues/136#issuecomment-746757450
I fixed it using your method,but failed.