Open Chopper-233 opened 11 months ago
hi,I have met the same trouble,have you sloved it?
I have met the same problem for a week . Has anyone solved the installation problem of pointnet2_ops? Thanks.
pointnet2_ops
has compatibility issues on Windows, and we recommend using Linux to run this repository.
Thank you for your reply,I have solved he problem.Ithink it is necessary to consider the version of g++(my cuda is 11.3,g++ is 7.5)
pip install "git+https://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib" Collecting pointnet2_ops Cloning https://github.com/erikwijmans/Pointnet2_PyTorch.git to /tmp/pip-install-e2e3kqj1/pointnet2-ops_ce2d904eae3f499eb388d326b47d5c7e Running command git clone --filter=blob:none --quiet https://github.com/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-e2e3kqj1/pointnet2-ops_ce2d904eae3f499eb388d326b47d5c7e Resolved https://github.com/erikwijmans/Pointnet2_PyTorch.git to commit b5ceb6d9ca0467ea34beb81023f96ee82228f626 Preparing metadata (setup.py) ... done Requirement already satisfied: torch>=1.4 in /home/jinghui/.local/lib/python3.10/site-packages (from pointnet2_ops) (1.12.0+cu113) Requirement already satisfied: typing-extensions in /home/jinghui/.local/lib/python3.10/site-packages (from torch>=1.4->pointnet2_ops) (4.7.1) Building wheels for collected packages: pointnet2_ops Building wheel for pointnet2_ops (setup.py) ... done Created wheel for pointnet2_ops: filename=pointnet2_ops-3.0.0-cp310-cp310-linux_x86_64.whl size=188847 sha256=e1f0b8da761bee6c07b75c4ec3e3acdd837e0c51d09e4e30d7fd98f1c35fdcd5 Stored in directory: /tmp/pip-ephem-wheel-cache-y92ebytj/wheels/07/66/b7/b315cc8e7c28337b475a9cf6297780271555eda9b504de5f05 Successfully built pointnet2_ops Installing collected packages: pointnet2_ops Successfully installed pointnet2_ops-3.0.0
Thank you for your reply,I have solved he problem.Ithink it is necessary to consider the version of g++(my cuda is 11.3,g++ is 7.5)
pip install "git+https://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib" Collecting pointnet2_ops Cloning https://github.com/erikwijmans/Pointnet2_PyTorch.git to /tmp/pip-install-e2e3kqj1/pointnet2-ops_ce2d904eae3f499eb388d326b47d5c7e Running command git clone --filter=blob:none --quiet https://github.com/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-e2e3kqj1/pointnet2-ops_ce2d904eae3f499eb388d326b47d5c7e Resolved https://github.com/erikwijmans/Pointnet2_PyTorch.git to commit b5ceb6d9ca0467ea34beb81023f96ee82228f626 Preparing metadata (setup.py) ... done Requirement already satisfied: torch>=1.4 in /home/jinghui/.local/lib/python3.10/site-packages (from pointnet2_ops) (1.12.0+cu113) Requirement already satisfied: typing-extensions in /home/jinghui/.local/lib/python3.10/site-packages (from torch>=1.4->pointnet2_ops) (4.7.1) Building wheels for collected packages: pointnet2_ops Building wheel for pointnet2_ops (setup.py) ... done Created wheel for pointnet2_ops: filename=pointnet2_ops-3.0.0-cp310-cp310-linux_x86_64.whl size=188847 sha256=e1f0b8da761bee6c07b75c4ec3e3acdd837e0c51d09e4e30d7fd98f1c35fdcd5 Stored in directory: /tmp/pip-ephem-wheel-cache-y92ebytj/wheels/07/66/b7/b315cc8e7c28337b475a9cf6297780271555eda9b504de5f05 Successfully built pointnet2_ops Installing collected packages: pointnet2_ops Successfully installed pointnet2_ops-3.0.0
hello, how did you fix it?what is the correct version of cuda and g++?
cuda is 11.3 and g++ is 7.5 ,I also implement it use cuda 11.7 and 11.1.,but the g++ version is 7.5 all the time .
git clone https://github.com/erikwijmans/Pointnet2_PyTorch.git
cd Pointnet2_PyTorch/pointnet2_ops_lib
pip install .
亲测有效
手动克隆并安装
git clone https://github.com/erikwijmans/Pointnet2_PyTorch.git cd Pointnet2_PyTorch/pointnet2_ops_lib pip install .
亲测有效 (M3DM) flk@lab-3090-ubuntu:~/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib$ pip install . Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Processing /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib Preparing metadata (setup.py) ... done Requirement already satisfied: torch>=1.4 in /home/flk/miniconda3/envs/M3DM/lib/python3.8/site-packages (from pointnet2_ops==3.0.0) (1.9.0) Requirement already satisfied: typing-extensions in /home/flk/.local/lib/python3.8/site-packages (from torch>=1.4->pointnet2_ops==3.0.0) (4.10.0) Building wheels for collected packages: pointnet2_ops Building wheel for pointnet2_ops (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [47 lines of output] running bdist_wheel running build running build_py copying pointnet2_ops/_version.py -> build/lib.linux-x86_64-cpython-38/pointnet2_ops copying pointnet2_ops/pointnet2_modules.py -> build/lib.linux-x86_64-cpython-38/pointnet2_ops copying pointnet2_ops/pointnet2_utils.py -> build/lib.linux-x86_64-cpython-38/pointnet2_ops copying pointnet2_ops/init.py -> build/lib.linux-x86_64-cpython-38/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' copying pointnet2_ops/_ext-src/include/ball_query.h -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/cuda_utils.h -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/group_points.h -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/interpolate.h -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/sampling.h -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/utils.h -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/src/ball_query.cpp -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/ball_query_gpu.cu -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/bindings.cpp -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/group_points.cpp -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/group_points_gpu.cu -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/interpolate.cpp -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/interpolate_gpu.cu -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/sampling.cpp -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/sampling_gpu.cu -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src running build_ext building 'pointnet2_ops._ext' extension Emitting ninja build file /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) 1.11.1.git.kitware.jobserver-1 g++ -pthread -B /home/flk/miniconda3/envs/M3DM/compiler_compat -Wl,--sysroot=/ -pthread -shared -B /home/flk/miniconda3/envs/M3DM/compiler_compat -L/home/flk/miniconda3/envs/M3DM/lib -Wl,-rpath=/home/flk/miniconda3/envs/M3DM/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/ball_query.o /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/ball_query_gpu.o /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/bindings.o /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/group_points.o /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/group_points_gpu.o /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/interpolate.o /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/interpolate_gpu.o /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/sampling.o /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/sampling_gpu.o -L/home/flk/miniconda3/envs/M3DM/lib/python3.8/site-packages/torch/lib -L/usr/local/cuda/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext.cpython-38-x86_64-linux-gnu.so g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/ball_query.o: 没有那个文件或目录 g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/ball_query_gpu.o: 没有那个文件或目录 g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/bindings.o: 没有那个文件或目录 g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/group_points.o: 没有那个文件或目录 g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/group_points_gpu.o: 没有那个文件或目录 g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/interpolate.o: 没有那个文件或目录 g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/interpolate_gpu.o: 没有那个文件或目录 g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/sampling.o: 没有那个文件或目录 g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/sampling_gpu.o: 没有那个文件或目录 error: command '/usr/bin/g++' failed with exit code 1 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pointnet2_ops Running setup.py clean for pointnet2_ops Failed to build pointnet2_ops ERROR: Could not build wheels for pointnet2_ops, which is required to install pyproject.toml-based projects 但是我会报这个错误怎么办
pip install ninja
os:python3.8 cuda 11.3 pytorch 1.10.1 while i'm running the command pip install "git+https://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib", i meet the issue following,and i try many solutions found on the internet but no one worked,i hope you can help me solve it nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). ninja: build stopped: subcommand failed. Traceback (most recent call last): File "D:\Anaconda\envs\ulip\lib\site-packages\torch\utils\cpp_extension.py", line 1723, in _run_ninja_build env=env) File "D:\Anaconda\envs\ulip\lib\subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure
× Encountered error while trying to install package. ╰─> pointnet2_ops
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.