pytorch放弃维护conda ** NOTE: Conda packages are no longer available. Please use pip instead.**
大家可能发现了Pytorch官网安装页面出现了上面的字眼,其实24年底官方便发布公告说conda维护成本过高而不在维护,惯用的conda -c pytorch channel也无效了,那么我们现在该如何安装pytorch呢?
官方(PyTorch) pip安装
按照之前方法选择对应的版本,使用pip安装就好了
当然问题也接踵而来,搞环境真的让人麻了,为什么用conda的重要原因之一就是它可以自己整合环境,而且在cuda12.7上此命令目前是无法使用的。
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
Looking in indexes: https://download.pytorch.org/whl/cu126
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch
conda-forge
哈哈不用担心,conda-forge表示我肯定能用!
创建环境后使用即可
conda install conda-forge::pytorch
conda install conda-forge::torchvision
最后,对于pytorch停止conda上的维护,该如何评价呢?