首页 > 编程语言 >python 安装Basemap 以及cannot import name ‘dedent’ from ‘matplotlib.cbook’问题解决

python 安装Basemap 以及cannot import name ‘dedent’ from ‘matplotlib.cbook’问题解决

时间:2022-11-19 18:56:34浏览次数:41  
标签:dedent cbook name matplotlib cannot import

我用的是anaconda管理工具,运行安装conda install basemap或者直接在anaconda,navigator 中搜索basemap,进行安装

 

 

问题:cannot import name ‘dedent’ from ‘matplotlib.cbook’

 第一步:找到报错文件

 

第二步:修改from matplotlib.cbook import dedent 为 from inspect import cleandoc as dedent

第三步:找到报错文件

 

 

 执行第二步操作,ok了。

 

标签:dedent,cbook,name,matplotlib,cannot,import
From: https://www.cnblogs.com/seeyou1993/p/16906734.html

相关文章