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
Declarations and imports
import warnings warnings.filterwarnings('ignore') import pandas as pd import numpy as np
from matplotlib import pyplot as plt
The complete Screenshot enter image description here
Thanks in advance for helping out
CodePudding user response:
The error seems to happen on Mac M1. Reverting to 9.0.0 fixes the issue.
CodePudding user response:
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.
