(CUDA 11.7)pip安装torch

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117

报错
在这里插入图片描述

我在安装到依赖包lit时报的错,所以补充lit包,
,再尝试运行即可。

遇到同样问题的小伙伴也可尝试一下,安装到哪个包时出错,手动安装一下。

pip install lit

安装成功
在这里插入图片描述


搜索过以下方法都不行

  1. error: subprocess-exited-with-error
    尝试方法:升级 pip install --upgrade setuptools
  2. ERROR: No matching distribution found for setuptools>=40.8.0
    尝试方法:降级 pip install setuptools==39.1.0
  3. note: This error originates from a subprocess, and is likely not a problem with pip.
    尝试方法:科学上网、下载whl包
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐