ImportError: cannot import name cbook

xiaoxiao2021-02-28  26

问题描述:caffe环境编译成功,运行具体项目时,出现错误ImportError: cannot import name cbook。后来进入python环境发现,运行import caffe 和 import matplotlib 出现Import: No module named functools_lru_cache 

找了好久才找到的解决方法,亲测有效:

卸载之前的matplotlib: 

sudo pip uninstall matplotlib

使用该命令重新安装:

sudo apt-get install python-matplotlib

这样就解决了

转载请注明原文地址: https://www.6miu.com/read-2633011.html

最新回复(0)