Error: ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/PIL/_imaging.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_xcb_connect'
Below is the piece of code I'm trying execute
import warnings warnings.filterwarnings('ignore') import pandas as pd import numpy as np
The complete Screenshot enter image description here
Thanks in advance for helping out
I faced the same issue on Mac M1 chip with pyodbc library, I resolved this and it worked for me, hope it will helps you as well.
I managed to fix it with a --no-binary option which forces pip to compile the module from source instead of installing from precompiled wheel.
pip uninstall pyodbc
pip install --no-binary :all: pyodbc
I think it's related to this issue: https://github.com/python-pillow/Pillow/issues/6015.
Running: pip install pillow==9.0.0 should fix it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With