pip install torch-scatter 

报错

      [end of output]

  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: Could not build wheels for torch-scatter, which is required to install pyproject.toml-based projects

解决:查看pypi文档

torch-scatter · PyPI

在终端打开python,查看pytorch版本

import torch
torch.__version__

我的版本为2.1.2+cu121

所以根据文档输入

pip install torch-scatter -f https://data.pyg.org/whl/torch-2.1.0+cu121.html

安装成功

Logo

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

更多推荐