保存ipyleaflet映射时“zip类型的对象不可JSON序列化”

2024-06-11 11:23:42 发布

您现在位置:Python中文网/ 问答频道 /正文

当我试图用Python3.8.5在Mac上的JupyterLab中保存ipyleaflet映射时。我得到以下错误:

from ipyleaflet import Map
maptest = Map(center = [50.,9], zoom=5)
maptest.save('../maps/maptest.html')

"Object of type zip is not JSON serializable"

当我使用来自documentation的示例映射并试图保存它时,甚至会出现相同的错误

谢谢你的帮助


Tags: fromimportmapobjectmacsavehtml错误