简体   繁体   English

Matplotlib 在 macOS 中不工作。 显示错误。 我尝试重新安装所有内容。但仍然无法正常工作

[英]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.

相关问题 当我运行这个程序时,我不断收到这个错误。 我已经尝试了所有我能想到的方法,但仍然无法正常工作 - I keep getting this error when I run this program. I have tried everything I can think of and it is still not working “期待','定界符”。 我尝试过的一切都不起作用 - "Expecting ',' delimiter". Everything I've tried is not working 点子不起作用,我已经尝试了此网站上的所有内容 - Pip isn't working, I've tried everything on this website student() 没有 arguments 错误。 我试图检查一切都可以请任何人帮助我解决它 - student() takes no arguments error. I tried to check everything can anyone please help me in solving it 我卸载了matplotlib,尝试重新安装它,但导入失败。 [OS X] - I uninstalled matplotlib, tried to reinstall it and it failed to be imported. [OS X] 我无法安装 Tkinter 或 tkinter。 我尝试了所有代码并重新安装了 TCL/TK。 但是还是报错 - I can't install Tkinter or tkinter. I tried every code and reinstall TCL/TK too. But still got an error 安装 zipline 的当前工作方法? 尝试了一切 - Current working method to install zipline? tried everything 我试图替换字符串中的所有字符,但它仍然没有按预期工作? - I tried to replace all characters in a string but it's still not working as intended? 在MacO上安装熊猫。 权限错误 - Installing Pandas on MacOs. Permission Error “break outside loop”,但我已经尝试了所有方法,但仍然收到相同的错误消息 - "break outside loop" but i've tried everything and still got the same error message
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM