官方链接:https://github.com/facebookresearch/pytorch3d/blob/main/INSTALL.md
conda create -n pytorch3d python=3.9
conda activate pytorch3d
conda install -c pytorch pytorch=1.12.0 torchvision cudatoolkit=10.2
conda install -c fvcore -c iopath -c conda-forge fvcore iopath
https://anaconda.org/pytorch3d/pytorch3d/files
下载py39_cu102_pyt1120.tar.bz2(与上面的版本对应)
conda install py39_cu102_pyt1120.tar.bz2
此外在使用时需要先import torch,再import pytorch3d,否则会报错