With the latest pytorch, we need to compile pytorch3d from source. However, pip install "git+https://github.com/facebookresearch/pytorch3d.git" cannot be executed due to the following error:
error: #error You need C++17 to compile PyTorch
27 | #error You need C++17 to compile PyTorch
| ^~~~~
error: command '/usr/local/cuda-11.8/bin/nvcc' failed with exit code 1
[end of output]
With the latest pytorch, we need to compile pytorch3d from source. However,
pip install "git+https://github.com/facebookresearch/pytorch3d.git"
cannot be executed due to the following error:This bug can be solved with modifying the line of
setup.py
: https://github.com/facebookresearch/pytorch3d/blob/eaf0709d6af0025fe94d1ee7cec454bc3054826a/setup.py#L52 intoand https://github.com/facebookresearch/pytorch3d/blob/eaf0709d6af0025fe94d1ee7cec454bc3054826a/setup.py#L77 into