报错:

 note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for torch-scatter
  Running setup.py clean for torch-scatter
Failed to build torch-scatter
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (torch-scatter)

解决:

  • cursor分析说是遇到了编译问题。所以解决方法是直接下载预编译的wheel文件:https://data.pyg.org/whl/torch-1.7.0%2Bcpu.html
  • 找到对应的torch_scatter文件,比如对于Python 3.8 和 PyTorch 1.7.0 CPU版本,下载:torch_scatter-2.0.7-cp38-cp38-win_amd64.whl
  • 使用pip安装下载的wheel文件:pip install 下载的文件路径/torch_scatter-2.0.7-cp38-cp38-win_amd64.whl

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐