You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在Google Colab中打开geemap时遭遇AttributeError错误求助

解决Google Colab中geemap启动时的AttributeError: module 'tornado.ioloop' has no attribute '_Selectable'错误

这个错误源于Colab预装的tornado版本过高,geemap依赖的旧版tornado中的_Selectable属性在新版本里已被移除。按以下步骤修复:

  • 卸载当前高版本tornado:

    !pip uninstall -y tornado
    
  • 安装geemap兼容的旧版tornado(推荐5.1.1版本,该版本保留了_Selectable属性):

    !pip install tornado==5.1.1
    
  • 重启Colab运行时(菜单栏→Runtime→Restart runtime)

  • 重新安装并启动geemap:

    !pip install geemap
    

    之后在代码中导入并初始化:

    import geemap
    m = geemap.Map()
    m
    

如果重启后问题依旧,可尝试清除Colab缓存后重复上述步骤。

内容的提问来源于stack exchange,提问作者Rana Mobeen

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.18 09:35:35