Search code examples
pythonraster

Import raster files into Python 3.10


I'm working on a project that requires the python 3.10 version but am having some difficulty accessing the files on that version. These files have the '.tiff' extension and contain metadata information about multispectral bands like resolution, band number, etc. I was able to import the files using the rasterio module in 3.9 version but couldn't get it to work on 3.10 and couldn't find another module perform the task. I would appreciate any advice on this, thanks.


Solution

  • As of today, doing pip install raster will attempt to install rasterio-1.2.10, which supports Python 3.6 to 3.9. For Python 3.10 support, you'll need to rasterio 1.3, which is currently in beta. You can install 1.3 beta 3 with pip install rasterio==1.3b3.