04-05-2024 05:49 AM
hi,
I cannot install geopandas in my notebook, ive tried all different forms of generic fix, pip installs etc but always get this error:
04-05-2024 10:23 AM
@tomos_phillips1 - can you please try install geopandas on a single node cluster. (driver only) ?
%pip install geopandas
04-06-2024 04:14 AM
@shan_chandra - I do not have permission in my org to modify any cluster properties etc. Do you know of another way around this? Our internal IT team also do not have a fix for this.
04-10-2024 01:11 PM
@tomos_phillips1 - can you please raise a support ticket with Databricks support team to triage this further?
04-23-2024 04:08 AM
04-23-2024 07:11 AM
@tomos_phillips1 @shan_chandra
Got the below init script from Databricks Support. Worked for us in Databricks AWS Env.
dbutils.fs.put("/databricks/scripts/libinstall.sh","""
#!/bin/bash
sudo rm -r /var/lib/apt/lists/*
sudo apt clean &&
sudo apt update --fix-missing -y &&
sudo apt install -y libmysqlclient21
sudo apt install -y libgdal-dev
""", True)
4 weeks ago
Hi @vbvasa,
gdal-config
using a GDAL_CONFIG
environment variable or ...
1.GDAL_CONFIG
environment variable, you can follow these steps:
bin
directory).GDAL_CONFIG
environment variable to point to the gdal-config
executable. For example:
export GDAL_CONFIG=/path/to/gdal-config
GDAL_VERSION
environment variable to the desired GDAL version.conda create -n geo-env -c conda-forge geopandas
pip install cython
pip install shapely
pip install fiona
pip install pyproj
pip install rtree
pip install geopandas