jupyter内核一直链接不上,是哪里没配置好么?

报错是: …/jupyter_client/localinterfaces.py:56: UserWarning: Unexpected error discovering local network interfaces: [Errno 13] Permission denied

排查思路

  1. 先用管理员 /root 权限启动 Jupyter → 能连则是权限问题,直接固定权限即可;
  2. 若仍连不上 → 执行 jupyter kernelspec list 检查内核是否存在;
  3. 内核不存在 → 安装 ipykernel 并注册;
  4. 内核存在 → 确认 Jupyter 和内核在同一个 Python 环境;
  5. 仍无效 → 清除 Jupyter 缓存 + 更换端口 + 关闭防火墙测试。

另外问一句,你的是啥设备? 大概率是系统权限限制吧

是不是手机端的?
手机系统的沙箱限制/容器的权限隔离,导致 Jupyter 无法获取 访问本地网络接口 的权限,进而卡在内核连接环节 :face_with_monocle: