Based on a comment from ocefpaf at https://github.com/conda-forge/gdal-feedstock/issues/69
I recently had an issue where my Anaconda environment was having issues when I wanted to import gdal or rasterio. I was getting the following error when I tried to import rasterio:
ImportError: libmfhdf.so.0: cannot open shared object file: No such file or directory
It seems to be a reasonably common issue based on online searches. The following fix worked for me and I was able to install other packages that I needed into the new env and it (so far) seems to be working OK.
conda create -n rasterio_test_env python=3.5 rasterio --yes -c conda-forge source activate rasterio_test_env python -c "import rasterio; print(rasterio.__version__)"
Leave a Reply