试过了很多方法,最后还是重装环境解决
conda create -n pytorch3d python=3.8
conda activate pytorch3d
conda install -c fvcore -c iopath -c conda-forge fvcore iopath
pip install ‘torch1.6.0+cu101’ -f https://download.pytorch.org/whl/torch_stable.html
pip install 'torchvision0.7.0+cu101’ -f https://download.pytorch.org/whl/torch_stable.html
pip install ‘pytorch3d==0.2.5’
参考
https://github.com/facebookresearch/pytorch3d/issues/495