Python 属性错误:folium没有属性映射
我得到的错误如下所示:Python 属性错误:folium没有属性映射,python,pandas,folium,Python,Pandas,Folium,我得到的错误如下所示: Traceback (most recent call last) <ipython-input-37-637818dcbe0d> in <module> ----> 1 mp = folium.map(location=[151.1780,33.7961], zoom_start=10) 2 3 choropleth = folium.Choropleth( 4 geo_data
Traceback (most recent call last)
<ipython-input-37-637818dcbe0d> in <module>
----> 1 mp = folium.map(location=[151.1780,33.7961], zoom_start=10)
2
3 choropleth = folium.Choropleth(
4 geo_data=suburbs,
5 data=rentwpostcode,
AttributeError: module 'folium' has no attribute 'map'
回溯(最近一次呼叫上次)
在里面
---->1 mp=folium.map(位置=[151.1780,33.7961],缩放开始=10)
2.
3叶片=叶片(
4 geo_数据=郊区,
5数据=rentwpostcode,
AttributeError:模块“folium”没有属性“map”
我尝试通过conda和git clone安装folium。两次错误都没有消除。我还尝试删除
folium.py
,但仍然无效。您看到的错误与folium
的安装无关。Python中的名称区分大小写,因此.map()
与.map()不同
。将代码更改为mp=folium.Map(位置=[151.1780,33.7961],zoom\u start=10)
,它将正常工作。您使用的是什么操作系统?什么python版本?