'When importing 'pybaseball' in a jupyter notebook i get the error below, happens for importing all or any function

When trying to import any function or all from 'pybaseball' I get this error...

dlopen(/opt/homebrew/lib/python3.9/site-packages/lxml/etree.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '_exsltDateXpathCtxtRegister'

(This error comes up on my M1 Macbook Air but it works fine on my Windows 11 desktop)

I installed it using 'pip install pybaseball', same way i do with any other package and i didn't get any errors when installing but it refuses to work in my ide. I have no idea what this error means also.



Sources

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

Source: Stack Overflow

Solution Source