我要运行的项目,在执行pip install -r requirements.txt批量安装完部分包之后,启动项目,先后报了以上标题中的两个错误,在此我将我的解决过程分享出来。
一、报错信息:ModuleNotFoundError: No module named 'torch_scatter’
尝试:Installation — pytorch_geometric documentation (pytorch-geometric.readthedocs.io)
找到对应版本的安装指令:
执行以下指令:
pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f <https://data.pyg.org/whl/torch-2.0.0+cu118.html>
终端显示: