[Python] segment-geospatial installation breaks jupyter lab in Ubuntu

Discussão em 'Python' iniciado por Stack, Fevereiro 28, 2025.

  1. Stack

    Stack Membro Participativo

    I would like to install jupyter inside a conda environment and then install segment-geospatial, a python library from samgeo.

    However installing segment-geospatial breaks something that causes jupyter notebooks to stop working. Jupyter lab works before I install the package. After I install it, I receive the following error when I try to start jupyter lab:

    ModuleNotFoundError: No module named 'pysqlite2'


    Any ideas on how to fix this?

    Here's the steps I took:

    conda create -c conda-forge -n MY_ENV_NAME python pandas jupyter ipykernel

    conda activate MY_ENV_NAME
    jupyter lab
    # jupyter lab opens fine

    conda install segment-geospatial
    #install completes fine

    jupyter lab
    # jupyter lab does not open, I receive the error:

    ModuleNotFoundError: No module named 'pysqlite2'


    I'm using Ubuntu 22.04

    Continue reading...

Compartilhe esta Página