Search code examples
pythonanacondarasterio

Conda Install Rasterio without Updating Dependencies


I am trying to install Rasterio to read a .tif image in my jupyter notebook. Normally I would just run conda install -c forge rasterio and then y to install the package, but I do not want to update any of the dependencies because if I do, the rest of my code breaks. I've never needed to not update my packages, so I am do not understand how to go about this issue.

Any suggestions?


Solution

  • To prevent existing packages from updating, use the --freeze-installed option.

    conda install -c conda-forge rasterio --freeze-installed

    conda install -c conda-forge rasterio --no-update-deps

    These two commands must work. For further knowledge you can visit the official website