0

I am trying to install torch-points3d but it seems that there's a problem with the package : torch-points-kernels
When I run in my Anaconda prompt: pip install torch-points3d

I get:

Building wheels for collected packages: torch-points-kernels
  Building wheel for torch-points-kernels (setup.py) ... error
      ERROR: Command errored out with exit status 1:
       command: 'C:\Users\guill\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\guill\\AppData\\Local\\Temp\\pip-install-c7q8hvu5\\torch-points-kernels\\setup.py'"'"'; __file__='"'"'C:\\Users\\guill\\AppData\\Local\\Temp\\pip-install-c7q8hvu5\\torch-points-kernels\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\guill\AppData\Local\Temp\pip-wheel-_y3jgos9'
           cwd: C:\Users\guill\AppData\Local\Temp\pip-install-c7q8hvu5\torch-points-kernels\
      Complete output (24 lines):
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.8
      creating build\lib.win-amd64-3.8\torch_points_kernels
      copying torch_points_kernels\chamfer_dist.py -> build\lib.win-amd64-3.8\torch_points_kernels
      copying torch_points_kernels\cluster.py -> build\lib.win-amd64-3.8\torch_points_kernels
      copying torch_points_kernels\cubic_feature_sampling.py -> build\lib.win-amd64-3.8\torch_points_kernels
      copying torch_points_kernels\gridding.py -> build\lib.win-amd64-3.8\torch_points_kernels
      copying torch_points_kernels\knn.py -> build\lib.win-amd64-3.8\torch_points_kernels
      copying torch_points_kernels\metrics.py -> build\lib.win-amd64-3.8\torch_points_kernels
      copying torch_points_kernels\torchpoints.py -> build\lib.win-amd64-3.8\torch_points_kernels
      copying torch_points_kernels\__init__.py -> build\lib.win-amd64-3.8\torch_points_kernels
      running build_ext
      C:\Users\guill\anaconda3\lib\site-packages\torch\utils\cpp_extension.py:316: UserWarning: Error checking compiler version for cl: [WinError 2] Le fichier spécifié est introuvable
        warnings.warn(f'Error checking compiler version for {compiler}: {error}')
      building 'torch_points_kernels.points_cpu' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      Error in atexit._run_exitfuncs:
      Traceback (most recent call last):
        File "C:\Users\guill\anaconda3\lib\site-packages\colorama\ansitowin32.py", line 59, in closed
          return stream.closed
      ValueError: underlying buffer has been detached
      ----------------------------------------
      ERROR: Failed building wheel for torch-points-kernels

I get the same when I try to install the package torch-points-kernels alone. I'm working with :

  1. Python 3.8.5
  2. PyTorch 1.10.1
  3. CUDA 11.4
  4. Windows 10

I've checked online but what I've found did'nt work. Thanks for your help

  • Thank you for this advise, it was helpful! I've installed VC++ following your link. I still had another problem with llvmlite which I solved with this: https://github.com/NVIDIA/NeMo/issues/841 – GuillaumeQr Jan 28 '22 at 09:15

0 Answers0