ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by <$HOME>/.conda/envs/hliuPython/lib/python3.6/site-packages/torch_scatter/scatter_cpu.cpython-36m-x86_64-linux-gnu.so)

See original GitHub issue

📚 Installation

Hi expert, I failed to import torch_geometric with error, is there anything I can do to make it work? I’ve installed and uninstalled several times and it still fails.

ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20’ not found (required by <$HOME>/.conda/envs/hliuPython/lib/python3.6/site-packages/torch_scatter/scatter_cpu.cpython-36m-x86_64-linux-gnu.so)

Environment

  • OS: CentOS Linux 7 (Core)

  • Python version: Python 3.6.8 :: Anaconda custom (64-bit)

  • PyTorch version: torch==1.3.1 torch-cluster==1.4.5 torch-geometric==1.3.2 torch-scatter==1.4.0 torch-sparse==0.4.3 torchvision==0.4.2

  • CUDA/cuDNN version: 10.1

  • GCC version: gcc (GCC) 5.4.0

  • How did you try to install PyTorch Geometric and its extensions (pip, source): $ pip install --verbose --no-cache-dir torch-scatter $ pip install --verbose --no-cache-dir torch-sparse $ pip install --verbose --no-cache-dir torch-cluster $ pip install torch-geometric

  • Any other relevant information:

I’ve added these paths in my bash

export PATH=/usr/local/cuda-10.1/bin$PATH export CPATH=/usr/local/cuda-10.1/include/:$CPATH export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64:$LD_LIBRARY_PATH

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
rusty1scommented, Dec 13, 2019

Have you tried googling your error? For example, this seems related.

0reactions
yiwccommented, Aug 3, 2022

conda create -n pyg python=3.8 conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cpuonly -c pytorch conda install pyg -c pyg conda install pytorch-cluster -c pyg

this works fine for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

libstdc++.so.6: version `GLIBCXX_3.4.20' not found
Here's a solution for this problem in Ubuntu 16.04 sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get ...
Read more >
Installation - GitHub
I've installed and uninstalled several times and it still fails. ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by <$HOME>/.
Read more >
lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found
Hello, Can somebody help me with this error? ... It seems this error is raised by scipy and you could try to use...
Read more >
GLIBCXX 3.4.30 not found in conda environment - Ask Ubuntu
I got a very similar issue, and solved it by linking the the lib file into the conda environment. For your situation you...
Read more >
Valloric/YouCompleteMe - Gitter
which has all the necessary GLIBCXX but YCM ends up using. ImportError: /depot/gcc-4.7.2/lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found