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

Ubuntu 22.04中安装segment-geospatial致Jupyter Lab故障求助

解决思路
  • 直接安装缺失的pysqlite2包
    激活目标conda环境后执行:

    conda install -c conda-forge pysqlite2
    

    若conda安装失败,改用pip:

    pip install pysqlite2
    
  • 修复Jupyter依赖
    安装segment-geospatial可能破坏了Jupyter的依赖链,强制重装Jupyter相关组件:

    conda activate MY_ENV_NAME
    conda install --force-reinstall jupyter jupyterlab ipykernel
    
  • 修复系统层面sqlite依赖
    Ubuntu 22.04下先确保系统sqlite开发库完整:

    sudo apt update && sudo apt install libsqlite3-dev
    

    然后在conda环境中强制重装Python(Python编译依赖系统sqlite):

    conda activate MY_ENV_NAME
    conda install --force-reinstall python
    
  • 更换安装顺序创建新环境
    先安装segment-geospatial再部署Jupyter,避免依赖冲突:

    conda create -c conda-forge -n new_env python pandas
    conda activate new_env
    conda install segment-geospatial
    conda install jupyter ipykernel
    jupyter lab
    

内容的提问来源于stack exchange,提问作者edge-case

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.14 05:02:33