无法在Windows 11上使用conda或pip安装pytorch3d

siv3szwd  于 11个月前  发布在  Windows
关注(0)|答案(1)|浏览(183)

我正在尝试安装pytorch3d,但是无论是conda还是pip都找不到pytorch3d包。
我按照pytorch的说明操作:https://github.com/facebookresearch/pytorch3d/blob/main/INSTALL.md
可以通过运行以下命令来安装运行时依赖项:

conda create -n pytorch3d python=3.9
conda activate pytorch3d
conda install pytorch=1.13.0 torchvision pytorch-cuda=11.8 -c pytorch -c nvidia
conda install -c fvcore -c iopath -c conda-forge fvcore iopath

字符串
对于CUB构建时间依赖性,只有在CUDA版本低于11.7(我使用的是CUDA 12)时才需要,如果您使用的是conda,则可以继续使用

conda install -c bottler nvidiacub


Python云

conda install pytorch3d -c pytorch3d


我得到的错误:

PackagesNotFoundError: The following packages are not available from current channels:

  - pytorch3d


当我执行时:

pip install pytorch3d


我得到这个错误:

ERROR: Could not find a version that satisfies the requirement pytorch3d (from versions: none)
ERROR: No matching distribution found for pytorch3d

ctzwtxfj

ctzwtxfj1#

您在所遵循的文档中遗漏了一些内容。请注意,在安装PyTorch 3D的预构建二进制文件下,有从Anaconda Cloud安装CUDA支持,仅在Linux上,因此仅在Linux上支持使用conda安装。如果您在anaconda.org上搜索并查看页面https://anaconda.org/pytorch3d/pytorch3d,您也可以看到这一点:
x1c 0d1x的数据
注意它只有一个linux-x64标记
对于pip,我们可以在这里查看PyPi上的可用文件:


的数据
请注意,只有macOS文件。
总结一下:这两种安装方法在windows上都不受支持。您需要从源代码安装。
执行此操作的主要命令是

pip install "git+https://github.com/facebookresearch/pytorch3d.git@stable"

字符串

相关问题