安装torch_scatter,torch-sparse,torch-cluster,torch-spline-conv,torch-geometric 技术标签:python 最近在学一个关于GNN的项目,需要安装torch_scatter,torch-sparse,torch-cluster,torch-spline-conv,torch-geometric。可以说安装这个花费了将近一天的
安装PyTorch Geometric需匹配版本,降级PyTorch至1.12.1,创建conda环境,按Python版本和系统类型下载对应whl文件,使用pip安装torch_sparse等库,确保GPU支持。
1. 查询torch版本号 进入https://pytorch-geometric.com/whl/ 找到对应的torch版本>>点击进入 2. 找到匹配的包 点击下载即可 3. 使用pip离线安装 pip install torch_scatter-2.0.9-cp36-cp36m-l
1.查看torch版本,查看python版本 2.下载对应版本的安装包: https://pytorch-geometric.com/whl/3.找到下载安装包的位置,直接pip install+包名称
2.pip install torch_geometric时成功,但是要我们再安装torch-sparse,但是失败了。 2.1 原因:版本不对 2.2 找到cuda113+torch1.10.1 2.3 找到win+python3.9 即cp39 3.安装过程截图 4.成功运行代码 1.导入的时候报以下错误: 2.pip install torch_geometric时成功,但是要我们再安装torch-sparse,但是失败了。 2.1...
pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric ...
pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric ...
遇到“error: failed building wheel for torch-cluster”的错误时,通常表明在尝试从源代码编译安装torch-cluster时遇到了问题。以下是一些可能的解决步骤: 确认安装要求和依赖: 确保你已经安装了torch、torch-scatter和torch-sparse,因为这些库是torch-cluster的依赖项。 检查你的torch版本是否与torch-cluster兼容。你可...
- torch-scatter==2.0.6 - torch-sparse==0.6.9 - torch-spline-conv==1.2.1 的时候,报错 ERROR: No matching distribution found for torch-cluster==1.5.9 1 试了网上各种方法还是不行,就算去掉版本限制也还是报错。 后来检查了一下所我参考的别人的环境配置,是我使用的python版本错误,应该要用python3.6....
CUDA=cpu pip install torch-scatter==latest+${CUDA} torch-sparse==latest+${CUDA} -f https://s3.eu-central-1.amazonaws.com/pytorch-geometric.com/whl/torch-1.4.0.html pip install torch-cluster pip install torch-geometric I also modified the def spawn(self, cmd): command as explained her...