安装torch_scatter,torch-sparse,torch-cluster,torch-spline-conv,torch-geometric 技术标签:python 最近在学一个关于GNN的项目,需要安装torch_scatter,torch-sparse,torch-cluster,torch-spline-conv,torch-geometric。可以说安装这个花费了将近一天的
Torch-Geometric,Torch-Scatter,Torch-Sparse安装教程 方法一 通过pycharm进行安装,但是最简单的方法,但容易出错 步骤1:点击pycharm的设置,进入下面页面,点击箭头进行添加。步骤2:在箭头处输入想要添加的包的名字。 步骤3:点击进行进行添加,就安装成功了。 上述方法比较简单,但容易出现各种安装错误,为了避免上述各种错误...
快速解决torch_sparse、torch_scatter安装并正确使用的问题 我们如果直接进行pip install后,会因为pip的机制自动下载最新版本的其他依赖,例如torch等cuda版本。 所以我们需要找到对应自己电脑的cuda版本的模块whl,进行离线安装。 找到对应版本 打开https://pytorch-geometric.com/whl/,找到对应版本模块。其中cu代表cuda版本的...
所以就安装torch-sparse,但是一直报错,类似于: ERROR: Command errored out with exit status 1: command: 'C:\Users\hastings\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\hastings\AppData\Local\Temp\pip-install-ks3umk5s\torch-scatter\setup.py...
安装PyTorch Geometric需匹配版本,降级PyTorch至1.12.1,创建conda环境,按Python版本和系统类型下载对应whl文件,使用pip安装torch_sparse等库,确保GPU支持。
先安装torch_scatter pip install torch_scatter-2.0.7-cp37-cp37m-win_amd64.whl 第二步安装torch_sparse pip install torch_sparse-0.6.9-cp37-cp37m-win_amd64.whl 第三步安装torch_cluster pip install torch_cluster-1.5.9-cp37-cp37m-win_amd64.whl ...
点击pyg官方给的whl链接: https://data.pyg.org/whl/torch-1.9.1%2Bcu111.html根据你的操作系统、和你的python版本(通过python --version可以查看)选择对应的链接复制。 在Linux服务器上使用wget命令下载whl文…
pip install torch-scatter torch-sparse==0.6.13torch-cluster torch-spline-conv-f https://data.pyg.org/whl/torch-1.10.0+cu113.html 安装完成上面包后,再安装 torch-geometric,torch-geometric不在官方源中,所以直接 pip install 就好: pip install torch-geometric ...
网址能打开说明就ok,如果不存在那说明版本冲突 4、安装 我用是pip,通过-f指定链接 pip install torch-scatter torch-sparse torch-cluster torch-spline-conv -f https://pytorch-geometric.com/whl/torch-1.10.0+cu113.html pip install torch-geometric 1 2 3 大功告成...
1. 2. 3. 然后根据有没有GPU,进入对应的路径。 然后根据“python版本、系统类型”选择不同的whl并下载。 然后执行安装: wget https://data.pyg.org/whl/torch-1.12.0%2Bcu116/torch_sparse-0.6.15-cp39-cp39-linux_x86_64.whl wget https://data.pyg.org/whl/torch-1.12.0%2Bcu116/torch_scatter-...