Python 3.9 environment, I need to importh both geoh5py and rasterio, they are not compatible, all good if I only need to import geoh5py plus other libs, or only rasterio plus other libs, but if import both of them, regardless of order of import, it will give me an error:
import rasterio
import geoh5py
Error:
from rasterio._base import gdal_version
ImportError: DLL load failed while importing _base: The specified procedure could not be found.
or if import geoh5py first
from geoh5py.workspace import Workspace
from . import _errors
ImportError: DLL load failed while importing _errors: The specified procedure could not be found.
Try creating a new virtual environment and installing the packages with pip. This often helps with dependency issues. Here's how you can do it:
rasterioandgeoh5pyusing pip: