在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
相关产品推荐
相关产品推荐

