算法conda环境torch-geometric安装
操作系统为centos 7,PyTorch环境需要glibc>=v2.17
pytorch官网地址:https://pytorch.org/get-started/previous-versions/
torch-geometric官网地址:https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html
安装之前查看操作系统支持的glibc版本,v1.11.x,v1.10.x,v1.9.x需要glibc=2.27
strings /lib64/libm.so.6 | grep GLIBC_
方式一:安装PyTorch(v1.11.x,v1.10.x,v1.9.x)
注意:这两个版本需要glibc=v2.27版本,这里选择不安装附加包 torch-spline-conv,跳过后面glibc报错
1.创建conda虚拟环境
conda create -n test1 python=3.9
2. 安装PyTorch环境
这里直接选择安装最新版本的pytorch,cudatoolkit版本对应显卡版本
conda install pytorch to