在Python中安装包mapclassify时出错
我收到一个笔记本,其中包含以下代码:在Python中安装包mapclassify时出错,python,maps,installation,Python,Maps,Installation,我收到一个笔记本,其中包含以下代码: (…) 将mapclassify.api导入为mc (…) 我尝试运行并收到错误消息:“没有名为“mapclassify”的模块” 因此,我安装了mapclassify包,代码为:$pip install mapclassify 但是现在,错误消息是:“没有名为‘mapdegoride.api’的模块” 我必须做什么?api从2.0版开始从mapclassify中删除 从中,这是中的语法: 这是因为: 在本页中,autor还使用了原始回购协议的分支,自去年以
(…)
将mapclassify.api导入为mc
(…)
我尝试运行并收到错误消息:“没有名为“mapclassify”的模块”
因此,我安装了mapclassify包,代码为:$pip install mapclassify
但是现在,错误消息是:“没有名为‘mapdegoride.api’的模块”
我必须做什么?
api
从2.0版开始从mapclassify
中删除
从中,这是中的语法:
这是因为:
在本页中,autor还使用了原始回购协议的分支,自去年以来从未更新过的
mapclassify.api
。因此,它反映了该准则的过时版本
>>> import mapclassify.api as mc
>>> y = mc.load_example()
>>> y.mean()
125.92810344827588
>>> y.min(), y.max()
(0.13, 4111.4499999999998)
>>> import mapclassify
>>> y = mapclassify.load_example()
>>> y.mean()
125.92810344827588
>>> y.min(), y.max()
(0.13, 4111.4499999999998)