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

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.