'How to fix python `dlib` error: "symbol not found in flat namespace '_png_do_expand_palette_rgb8_neon'"?

I am getting the error: symbol not found in flat namespace '_png_do_expand_palette_rgb8_neon' The error occurs in spite of the dlib package being installed for the relevant Python version.

I am using VSCode, in case that is relevant.

Can anyone please help me to fix this bug? enter image description here



Solution 1:[1]

Should work if you force a reinstall using:

pip3 install dlib --force-reinstall --no-cache-dir --global-option=build_ext

That fixed it for me.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 patrick