首页 > 解决方案 > 当我尝试导入 Geopandas 时,内核反复死机

问题描述

我正在尝试将 geopandas 导入我的 jupyter 笔记本,但内核一直在死机。我也是相当新的 geopandas 和 jupyter notebooks。

我尝试更新 jupyter notebooks 和 geopandas。

“进口地理熊猫”

我收到一条错误消息“内核似乎已经死机。它将自动重新启动。” 内核死机错误

标签: python-3.xjupyter-notebookgeopandas

解决方案


我遇到了同样的问题,发现我的 jupyter 内存不足。

  1. 尝试import fiona在你面前import geopandas

  2. 请使用这些扩展来检查您是否没有耗尽内存。尝试安装 jupyter-resource-usage 扩展来验证https://tljh.jupyter.org/en/latest/howto/admin/nbresuse.html#:~:text=The%20jupyter%2Dresource%2Dusage%20extension,corner% 20of%20the%20notebook%20interface。

  3. 您还可以在活页夹中运行笔记本,这应该可以解决任何内存不足问题: https://mybinder.org/v2/gh/RadiantMLHub/ml4eo-bootcamp-2021/HEAD mybinder.orgmybinder.org


将您的笔记本/文件夹/文件保存到 github 并将链接复制到活页夹中。


推荐阅读