facebookresearch / pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data
https://pytorch3d.org/
Other
8.81k stars 1.32k forks source link

Error when installing pytorch3d #1576

Closed bubuton closed 4 months ago

bubuton commented 1 year ago

Hi, I was installing the pytorch3d following the installation guide (https://github.com/facebookresearch/pytorch3d/blob/main/INSTALL.md). Below is the problem that I was get into when running "pip install -e ." in step 2. Install from a local clone. image

I was running on a conda environement as python version of 3.10 on windows. The cuda installed in the environment should be 11.6, however in the error message it is mentioning 11.1 which is the cuda I installed locally, not sure if that cause the problem. Also, I followed the instruction where to set CUB_HOME="the directory where the cmakelist is". The error message suggest that I do not need to use my own checkout of cub, should I just ignore it? The image below is the directory of the cmakelist image image

Thank you.

bottler commented 1 year ago

Have you set CUDA_HOME to point at the cuda installation (11.6) which you want it to use?

bubuton commented 1 year ago

Not yet I will have a try now, thank you

bubuton commented 1 year ago

There is a new error after I set the CUDA_HOME to the 11.6, which is error checking compiler version for cl image

I don't have cl returned in the cmd, should I just pip install one?

bottler commented 1 year ago

"error checking compiler version" is not the problem; it is just a warning. After it there's a short error I don't understand. I think perhaps you might have a log file which might help understand what went wrong.

bubuton commented 1 year ago

The error message after it is the same as https://github.com/facebookresearch/pytorch3d/issues/1329, which is The system cannot find the file specified

bottler commented 1 year ago

Ah ok. You need to have visual studio installed and you need to be in the right visual studio command prompt. Is that the case? As mentioned on the other issue, this is not a pytorch3d-specific problem.

bubuton commented 1 year ago

Here is the error log, I did have visual studio installed, so to solve the problem I should activate conda in visual studio command prompt? https://docs.google.com/document/d/1F5pL-12eCYi01GgeIIsb9uITucIfAui9FzsFyoEx5Ts/edit?usp=sharing

bubuton commented 1 year ago

Here is the error log, I did have visual studio installed, so to solve the problem I should activate conda in visual studio command prompt? https://docs.google.com/document/d/1F5pL-12eCYi01GgeIIsb9uITucIfAui9FzsFyoEx5Ts/edit?usp=sharing

I used the visual studio 2019 prompt to run it, there is no cl warning for now but the error log is still the same. Below is the error log. https://docs.google.com/document/d/1KcHr0T0g6BNgYSvIkgltXVAjcS04yHsz249k5qvtmYM/edit?usp=sharing

On the other hand, I tried the install from github method using this line "pip install "git+https://github.com/facebookresearch/pytorch3d.git" This raise a new error of pyproject, is this related to this step "Installing prebuilt binaries for PyTorch3D" as I am running on windows, I just ignored the content in it. image

bottler commented 1 year ago

Sorry - I'm a bit confused. Yes you need to activate conda and your conda environment in the prompt. The two google docs are not useful logs - they don't show what went wrong. There should be other logs or other output on the console.

bubuton commented 1 year ago

This is the error message in the console. It has this error of The system cannot find the file specified but not knowing what is missing exactly. https://docs.google.com/document/d/1oRJnFlvIMul9_xWGeQT-jhORHat9tRYSfov8bs0X55M/edit?usp=sharing

bottler commented 1 year ago

Could you be missing some visual studio components like windows sdks? Also it's worth checking through the other issues which include "The system cannot find the file specified". We've had a few.