[英]Matplotlib not working in macOS. shows error. I tried to reinstall everything.but still not working
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' dlopen(/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/PIL/_imaging.cpython-310-darwin.so,0x0002):在平面命名空间'_xcb_connect'中找不到符号
this keeps showing please help me solve this这一直显示请帮我解决这个问题
The error seems to be pillow
9.0.1, a matplotlib dependency.错误似乎是
pillow
9.0.1,一个 matplotlib 依赖项。 Reverting back to 9.0.0 should solve the error in the meantime.同时恢复到 9.0.0 应该可以解决该错误。
Pillow issue here: https://github.com/python-pillow/Pillow/issues/6015这里的枕头问题: https://github.com/python-pillow/Pillow/issues/6015
1. Uninstall Following Package 1.卸载以下Package
pip uninstall pillow
pip uninstall numpy
pip uninstall wordcloud
pip uninstall matplotlib
pip uninstall pyparsing
pip uninstall kiwisolver
pip uninstall python-dateutil
pip uninstall cycler
pip uninstall packaging
pip uninstall fonttools
pip uninstall contourpy
pip uninstall six
2. Install wordcloud 2.安装词云
pip install wordcloud
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.