Open VikasSargar777 opened 11 months ago
I also received this error.
Building wheel for torch-points-kernels (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [176 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/torch_points_kernels
copying torch_points_kernels/metrics.py -> build/lib.linux-x86_64-cpython-38/torch_points_kernels
copying torch_points_kernels/chamfer_dist.py -> build/lib.linux-x86_64-cpython-38/torch_points_kernels
copying torch_points_kernels/torchpoints.py -> build/lib.linux-x86_64-cpython-38/torch_points_kernels
copying torch_points_kernels/__init__.py -> build/lib.linux-x86_64-cpython-38/torch_points_kernels
copying torch_points_kernels/cubic_feature_sampling.py -> build/lib.linux-x86_64-cpython-38/torch_points_kernels
copying torch_points_kernels/gridding.py -> build/lib.linux-x86_64-cpython-38/torch_points_kernels
copying torch_points_kernels/cluster.py -> build/lib.linux-x86_64-cpython-38/torch_points_kernels
copying torch_points_kernels/knn.py -> build/lib.linux-x86_64-cpython-38/torch_points_kernels
running build_ext
building 'torch_points_kernels.points_cpu' extension
creating build/temp.linux-x86_64-cpython-38
creating build/temp.linux-x86_64-cpython-38/cpu
creating build/temp.linux-x86_64-cpython-38/cpu/src
cpu/src/neighbors.cpp: In instantiation of ‘void nanoflann_knn_neighbors(std::vector~^~~~~~~~~~~
/usr/include/strings.h:55:1: note: candidate: ‘char
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for torch-points-kernels Running setup.py clean for torch-points-kernels Failed to build torch-points-kernels ERROR: Could not build wheels for torch-points-kernels, which is required to install pyproject.toml-based projects
Also have the same error
请问如何解决?
在使用此命令 pip install torch-points-kernels==0.7.0 安装 torch-points-kernels 时,我将遇到 buildwheels 的错误
错误:- --> 为 torch-points-kernels 构建轮子 (setup.py) ... 错误 错误:子进程因错误而退出
× python setup.py bdist_wheel 未运行。 │ 退出代码:1 ╰─> [738 行输出] 运行 bdist_wheel 运行构建 运行 build_py 创建构建 创建 build\lib.win-amd64-cpython-38 创建 build\lib.win- amd64-cpython-38\torch_points_kernels 复制 torch_points_kernels\chamfer_dist.py -> build\lib.win-amd64-cpython-38\torch_points_kernels 复制 torch_points_kernels\cluster.py -> build\lib.win-amd64-cpython-38\torch_points_kernels 复制torch_points_kernels\cubic_feature_sampling.py -> build\lib.win-amd64-cpython-38\torch_points_kernels 复制torch_points_kernels\gridding.py -> build\lib.win-amd64-cpython-38\torch_points_kernels 复制 torch_points_kernels\knn.py -> build\lib.win-amd64-cpython-38\torch_points_kernels 复制 torch_points_kernels\metrics.py -> build \lib.win-amd64-cpython-38\torch_points_kernels 复制 torch_points_kernels\torchpoints.py -> build\lib.win-amd64-cpython-38\torch_points_kernels 复制 torch_pointskernels init _.py -> build\lib.win-amd64-cpython -38\torch_points_kernels 运行build_ext C:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\utils\cpp_extension.py:304:UserWarning:检查 cl 的编译器版本时错误:[WinError 2] 系统找不到指定的文件 警告.warn(f'检查 {compiler} 的编译器版本时错误:{error}') 构建 'torch_points_kernels.points_cuda' 扩展 创建 build\temp.win-amd64-cpython-38 创建 build\temp.win-amd64-cpython -38\Release 创建build\temp.win-amd64-cpython-38\Release\cuda 创建build\temp.win-amd64-cpython-38\Release\cuda\src “C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe” /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icuda/include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\TH -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\THC “-IC:\Program Files\NVIDIA GPU Computing工具包\CUDA\v11.0\include” “-IC:\Program Files\NVIDIA GPU 计算工具包\CUDA\v11.0\include;C:\Program Files\NVIDIA GPU 计算工具包\CUDA\v11.0\lib\x64;C:\Program Files\NVIDIA GPU 计算工具包\CUDA\v11.0\bin;C:\Program Files\NVIDIA GPU 计算工具包\CUDA\v11.0;\include” -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\Include “-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include” “-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um” “-IC:\Program Files (x86)\Windows 工具包\10\include\10.0.19041.0\ucrt“-IC:\Program Files (x86)\Windows 工具包\10\include\10.0.19041.0\shared”“-IC:\Program Files (x86)\Windows 工具包\10\include\10.0.19041.0\um”“-IC:\Program Files (x86)\Windows工具包\10\include\10.0.19041.0\winrt”“-IC:\Program Files (x86)\Windows工具包\10\include\10.0.19041.0\cppwinrt”/EHsc /Tpcuda/src\ball_query.cpp /Fobuild\temp.win-amd64-cpython-38\Release\cuda/src\ball_query.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENS ION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 cl:命令行警告 D9002:忽略未知选项“-O3” ball_query.cpp
C:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\pybind11\detail/common.h(108): warning C4005: 'HAVE_SNPRINTF': macro redefinition C:\ProgramData\miniconda3\envs\WIN_PCAIST\include\pyerrors.h(315): note: see previous definition of 'HAVE_SNPRINTF' "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc" -c cuda/src\ball_query_gpu.cu -o build\temp.win-amd64-cpython-38\Release\cuda/src\ball_query_gpu.obj -Icuda/include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\TH -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0;\include" -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --use-local-env nvcc fatal : Unsupported gpu architecture 'compute_86' error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.0\\bin\\nvcc.exe' failed with exit code 1 [end of output]
注意:此错误下面子进程,很可能不是 pip 的问题。 错误:无法为 torch-points-kernels 构建轮子 正在为 torch-points- kernels 运行 setup.py clean 无法构建 torch-points-kernels 错误:无法为torch-points-kernels 构建wheel,并安装基于 pyproject.toml 的项目需要这个wheel
-->
这是安装过程中控制台上显示的输出,请指导我如何解决此类错误
请问这个问题解决了吗?
During installation of torch-points-kernels using this command pip install torch-points-kernels==0.7.0, I will faced the error for build wheels
Error :- --> Building wheel for torch-points-kernels (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [738 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-38 creating build\lib.win-amd64-cpython-38\torch_points_kernels copying torch_points_kernels\chamfer_dist.py -> build\lib.win-amd64-cpython-38\torch_points_kernels copying torch_points_kernels\cluster.py -> build\lib.win-amd64-cpython-38\torch_points_kernels copying torch_points_kernels\cubic_feature_sampling.py -> build\lib.win-amd64-cpython-38\torch_points_kernels copying torch_points_kernels\gridding.py -> build\lib.win-amd64-cpython-38\torch_points_kernels copying torch_points_kernels\knn.py -> build\lib.win-amd64-cpython-38\torch_points_kernels copying torch_points_kernels\metrics.py -> build\lib.win-amd64-cpython-38\torch_points_kernels copying torch_points_kernels\torchpoints.py -> build\lib.win-amd64-cpython-38\torch_points_kernels copying torch_points_kernels__init__.py -> build\lib.win-amd64-cpython-38\torch_points_kernels running build_ext C:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\utils\cpp_extension.py:304: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'torch_points_kernels.points_cuda' extension creating build\temp.win-amd64-cpython-38 creating build\temp.win-amd64-cpython-38\Release creating build\temp.win-amd64-cpython-38\Release\cuda creating build\temp.win-amd64-cpython-38\Release\cuda\src "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icuda/include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\TH -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0;\include" -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpcuda/src\ball_query.cpp /Fobuild\temp.win-amd64-cpython-38\Release\cuda/src\ball_query.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 cl : Command line warning D9002 : ignoring unknown option '-O3' ball_query.cpp
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for torch-points-kernels Running setup.py clean for torch-points-kernels Failed to build torch-points-kernels ERROR: Could not build wheels for torch-points-kernels, which is required to install pyproject.toml-based projects
-->
This the output shown on the console during installation, Please guide me how to solve this type of error