xgboost: error in ubuntu libstdc++.so.6: version `GLIBCXX_3.4.20' not found

Trying to install xgboost I have the following error.

OSError: /home/al/anaconda3/lib/python3.5/site-packages/scipy/sparse/../../../../libstdc++.so.6: versionGLIBCXX_3.4.20’ not found (required by /home/al/anaconda3/lib/python3.5/site-packages/xgboost-0.4-py3.5.egg/xgboost/libxgboost.so)`

I’m running Python 3.5.1 |Anaconda 2.4.0 (64-bit)| (default, Dec 7 2015, 11:16:01) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux

I already follow the normal steps for installing. git clone … -> make -> python setup.py install

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 18

Most upvoted comments

Same issue. conda install libgcc Solved it for me.

conda install libgcc=5.2.0 works for me

@shawnwanderson , works like magic !, Thank You

@shawnwanderson: I tried many ways, all of them didn’t work. But your method works perfectly. Thanks!

Solved for me too ! Thanks