我正在尝试安装:
pip install torch-scatter==2.1.1
并收到以下错误:
Collecting torch-scatter==2.1.1
Using cached torch_scatter-2.1.1.tar.gz (107 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
\Local\Temp\pip-build-env-hgzk7elh\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 8, in <module>
ModuleNotFoundError: No module named 'torch'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
火炬2.1.2已正确安装,我可以通过
pip list
看到它。
点已更新 (23.3.2)。
setuptools 由 pip install --upgrade --force-reinstall setuptools
更新 (69.0.3)。
我也尝试过:pip install torch-scatter==2.1.1 -f https://data.pyg.org/whl/torch-2.1.2+${cpu}.html
遇到了同样的错误。
我在Windows系统中的(.venv)上运行。 有人可以帮我解决问题吗?谢谢。
你找到解决办法了吗?我现在也遇到同样的问题