尝试在python中使用mpl_toolkits.basemap时遇到TypeError:Deprecated()问题

时间:2019-06-19 20:04:20

标签: python python-3.x matplotlib anaconda matplotlib-basemap

我一直试图整天从mpl_toolkits安装Basemap,但是我一直遇到有关不赞成使用软件包的问题?

我尝试基于此进行安装:

conda install -c conda-forge basemap=1.1.0

然后通过以下方式更新它:

conda install -c conda-forge basemap-data-hires=1.0.8.dev0

但是当我尝试导入它时,出现了一个巨大的错误:

from mpl_toolkits.basemap import Basemap

Traceback (most recent call last):

File "<ipython-input-27-d9467465a3b6>", line 1, in <module>
from mpl_toolkits.basemap import Basemap

File "C:\Users\jsullivan\Documents\Anaconda\lib\site- 
packages\mpl_toolkits\basemap\__init__.py", line 42, in <module>
from mpl_toolkits.axes_grid1 import make_axes_locatable

File "C:\Users\jsullivan\Documents\Anaconda\lib\site- 
packages\mpl_toolkits\axes_grid1\__init__.py", line 2, in <module>
from .axes_divider import Divider, SubplotDivider, LocatableAxes, \

File "C:\Users\jsullivan\Documents\Anaconda\lib\site- 
packages\mpl_toolkits\axes_grid1\axes_divider.py", line 848, in <module>
addendum=' There is no alternative. Deriving from '

TypeError: deprecated() missing 5 required keyword-only arguments: 
'message', 'name', 'alternative', 'pending', and 'obj_type'

这是怎么回事?

0 个答案:

没有答案