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

