[Python] Pyproj using system PROJ instead of environment PROJ

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

  1. Stack

    Stack Membro Participativo

    i use mamba to manage my environments. When I install pyproj it doesn't find the proj which is then automatically installed inside the environent's share directory but instead uses the system proj.

    i did

    mamba create -n pyproj_test python==3.12.8
    mamba activate pyproj_test
    mamba install pyproj==3.7.1
    mamba install ipykernel


    then i open an interactive window in visual studio code and start the pyproj_test kernel.

    import pyproj then yields /home/.../envs/pyproj_test/lib/python3.12/site-packages/pyproj/network.py:59: UserWarning: pyproj unable to set PROJ database path. _set_context_ca_bundle_path(ca_bundle_path)

    furthermore pyproj.datadir.get_data_dir() points to a system proj. This behaviour causes issues in combination with the regionmask python package. any help is welcome.

    Continue reading...

Compartilhe esta Página