Scipy error “undefined symbol: __atomic_compare_exchange_8” when using ssim function


This Content is from Stack Overflow. Question asked by ttocs167

I’ve recently updated the python version to 3.8.14 on my pi4 and now I’m getting an error running some Scipy code that worked before. The error seems to be caused by the structural similarity index in scipy.

from skimage.metrics import structural_similarity as ssim
    from ._highs._highs_wrapper import _highs_wrapper
ImportError: /home/pi/.local/lib/python3.8/site-packages/scipy/optimize/_highs
/ undefined symbol: __atomic_compare_exchange_8

Has anyone got any idea how to fix this? I’m using the same version of scipy that worked before.


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?