绝望了一晚上 因为这个错误,在网上扒了半天,终于解决了。
就到错误提示的目录里面找到font_manager.py文件,将其大约在231行左右的direc = os.path.abspath(direc).lower() 改为:direc = direc.split(‘\0’, 1)[0]就可以解决了。
例如我这个错误的目录就是/home/sebar/.local/lib/python3.5/site-packages/matplotlib/font_manager.py将这个修改,再重新启动python就可以了。
Matplotlib is building the font cache using fc-list. This may take a moment解决办法
最新推荐文章于 2024-12-11 23:09:24 发布
本文介绍了一种解决matplotlib中font_manager.py文件导致的错误的方法。通过修改特定行的代码,可以有效解决因路径处理不当引发的问题。
2614

被折叠的 条评论
为什么被折叠?



