在运行python代码时,发现没有pytorch3d的包,下面记录安装过程:
直接进行pip安装是不行的:pip install pytorch3d 终端运行这个指令会报错如下情况:
ERROR: Could not find a version that satisfies the requirement pytorch3d (from versions: none)
ERROR: No matching distribution found for pytorch3d
下面经过查询,这个网址链接解决了安装pytorch3d的问题:
pytorch3d/INSTALL.md at main · facebookresearch/pytorch3d · GitHub
Installing prebuilt binaries for PyTorch3D
After installing the above dependencies, run one of the following commands:
1. Install with CUDA support from Anaconda Cloud, on Linux only
# Anaconda Cloud
conda install pytorch3d -c pytorch3d
在这篇博客的基础上:pytorch3d在linux下安装_pytorch3d pytorch3d/linux-64::pytorch3d-0.4.0-py38-CSDN博客
下面进行正确的pytorch3d安装:
只需要在linux系统的终端环境中输入如下指令:
conda install pytorch3d -c pytorch3d
即可完成 pytorch3d 的安装