Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

506
Views
scipy not using anaconda's local lib for libgcc

I'm using Anaconda 4.10.3, with Python 3.9.7, Scipy 1.7.1 on Ubuntu 16.04.6. A script I need to run uses Scipy's optimize and it throws the following error:

ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version 'GLIBCXX_3.4.26' not found (required by /home/user/anaconda3/envs/work/lib/python3.9/site-packages/scipy/optimize/_group_columns.cpython-39-x86_64-linux-gnu.so)

As indicated in the error, the system libstcc++.so.6 does not provide GLIBCXX_3.4.26, which I verified using

strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX

Then I ran conda install libgcc and verified that strings /home/user/anaconda3/envs/work/lib/libstdc++.so.6.0.29 | grep GLIBCXX shows GLIBCXX_3.4.26. I then added the following line to my .bashrc and ran source ~/.bashrc

LD_LIBRARY_PATH=/home/user/anaconda3/envs/work/lib/:$LD_LIBRARY_PATH

When I run the script after this, I still get the same error saying ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version 'GLIBCXX_3.4.26' not found.

I was thinking of downgrading scipy, but shouldn't there be a better way to fix this without downgrading?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I am having the same issue crop up using Anaconda3 (4.10.3), Python 3.7.12, and Scipy 1.7.3. Changing my PATH and LD_LIBRARY_PATH in my .bashrc did not fix the issue.

After some searching, it seems to be a conda dependency issue: Anaconda libstdc++.so.6: version `GLIBCXX_3.4.20' not found

I was able to fix the issue by running conda update libstdcxx-ng

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!