cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to install GDAL on Databricks Cluster ?

Jain
New Contributor III

I am currently using Runtime 10.4 LTS.

The options available on Maven Central does not work as well as on PyPi.

I am running:

try:
 
  from osgeo import gdal
 
except ImportError:
 
  import gdal

to validate but it throws

ModuleNotFoundError: No module named 'gdal'

1 REPLY 1

Aviral-Bhardwaj
Esteemed Contributor III

@Abhishek Jainโ€‹  I can understand your issue it happens to me also multiple times so solving this issue I used to install the init script in my cluster

Major reason is that your 10X version does not support your current library so you have to find right package for your 10X machine

and you can create init script using this link -- https://docs.databricks.com/clusters/init-scripts.html

Thanks

Aviral