您的位置:首页 > 游戏 > 游戏 > 搭建平台的另一种说法_怎样进行文化建设_百度精简版入口_网页代码大全

搭建平台的另一种说法_怎样进行文化建设_百度精简版入口_网页代码大全

2024/9/25 5:15:33 来源:https://blog.csdn.net/qq_45759229/article/details/142500311  浏览:    关键词:搭建平台的另一种说法_怎样进行文化建设_百度精简版入口_网页代码大全
搭建平台的另一种说法_怎样进行文化建设_百度精简版入口_网页代码大全
conda create -n pyg python==3.8.12
pip install torch==1.13.0

安装的版本如下
在这里插入图片描述

pip install torch-scatter
pip install torch-sparse
pip install torch-cluster
pip install torch-spline-conv
pip install torch-geometric==2.2.0
pip install ipykernel
python -m ipykernel install --name pyg --user

此时会出现
在torch_scatter包中,出现
python scatter_max算子不适配报错,RuntimeError: Not compiled with CUDA support的错误

解决办法如下
torch scatter的版本如下

ERROR: Could not find a version that satisfies the requirement torch-scatter==2.0.1 (from versions: 0.3.0, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.1.0, 2.1.0+pt113cu117, 2.1.1, 2.1.1+pt113cu117, 2.1.2)

默认选择安装torch_scatter2.1.2
请使用下面的命令就可以卸载并重新安装torch_scatter包了,这样就可以愉快的跑代码了

pip uninstall torch_scatter
pip install torch-scatter==2.1.1 -f https://pytorch-geometric.com/whl/torch-1.13.0+cu117.html --no-cache-dir

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com