[Python] rasterio DLL load failed while importing _vsiopener

Discussão em 'Python' iniciado por Stack, Maio 21, 2025.

  1. Stack

    Stack Membro Participativo

    Anybody out there using Rasterio in Anaconda? I'm having some trouble getting it to load properly. I'm working in a Jupyter notebook in a new Anaconda env created in terminal with:

    conda create -n GeoEnv python=3.13.3 numpy matplotlib scikit-learn scipy seaborn pandas xarray gdal rasterio geopandas rioxarray notebook

    That gives gdal 3.10.3 and rasterio 1.4.3.

    When I fire up my notebook and start loading libraries, I get the following:

    import os
    import pandas as pd
    import matplotlib.pyplot as plt
    import numpy as np
    import xarray as xr
    import rasterio


    output:

    ---------------------------------------------------------------------------
    ImportError Traceback (most recent call last)
    Cell In[2], line 6
    4 import numpy as np
    5 import xarray as xr
    ----> 6 import rasterio

    File C:\Users\Public\PublicPrograms\anaconda3\envs\GeoEnv\Lib\site-packages\rasterio\__init__.py:27
    25 from rasterio._base import DatasetBase
    26 from rasterio._io import Statistics
    ---> 27 from rasterio._vsiopener import _opener_registration
    28 from rasterio._show_versions import show_versions
    29 from rasterio._version import gdal_version, get_geos_version, get_proj_version

    ImportError: DLL load failed while importing _vsiopener: The specified procedure could not be found.


    When I browse to the specified location, _vsiopener.cp313-win_amd64.pyd exists.

    Anybody have any idea what's up? I've reinstalled rasterio and tried downgrading one version (to 1.4.2) but had no success with either one.

    thanks a bunch for any thoughts.

    Continue reading...

Compartilhe esta Página