pytorch_geometric: OSError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /home/user/anaconda3/envs/hbk_gcn/lib/python3.9/site-packages/torch_spline_conv/_basis_cuda.so)
📚 Installation
Environment
- OS:ubuntu 16.04
- Python version:3.9
- PyTorch version:1.10
- CUDA/cuDNN version:10.2
- GCC version:
- How did you try to install PyTorch Geometric and its extensions (wheel, source):
- Any other relevant information:
Checklist
Additional context
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 19 (9 by maintainers)
For now, the only workaround is to install an older version of
torch-spline-convor avoid to install it in the first place (it’s an optional dependency of PyG).I solved it by degrading torch to 1.9.0, dont know if it helps
I think the main problem is that our wheels are compiled with Ubuntu 18.04 which comes with GLIBC 2.27 by default. Any chance you can upgrade to a higher version? Otherwise, you may need to install the extensions via manual compiling:
same error
OS : ubuntu 16.04 python : 3.9 pytorch: 1.10.2 CUDA 10.2 GCC version 5.4.0 PyG isntall : using “conda install pyg=2.0.4 -c pyg -c conda-forge” import torch_geometric successfully, but when I try to import torch_geometric.nn as pygnn, this error occurred
I solved this by “pin uninstall torch-spline-conv” and “pip install torch-spline-conv -f https://data.pyg.org/whl/torch-${TORCH}+${CUDA}.html”
I wish I could help, but unfortunately I know very little about GitHub Actions and building packages. My original idea was that you could specify
glibas a conda dependency ofpyg.same error