Python's BUILD_WITH_GEO_LIBRARIES legacy feature is no longer supported


The Python Buildpack is showing a build error that the BUILD_WITH_GEO_LIBRARIES feature is no longer supported.


The Python buildpack's legacy GEO/GDAL/PROJ feature (that was activated via the BUILD_WITH_GEO_LIBRARIES environment variable) was deprecated in April 2020, and support has now been removed from the buildpack.

If your app requires these libraries and has not yet started using the Heroku Geo Buildpack, you will need to follow the migration steps below.


In order to continue to use the GDAL, GEOS and PROJ packages on Heroku, you can add the third-party Heroku Geo Buildpack to your application:

$ heroku buildpacks:add --index 1

Confirm that the buildpack has been added:

$ heroku buildpacks
=== Buildpack URLs
2. heroku/python

You will then need to remove the BUILD_WITH_GEO_LIBRARIES environment variable from your application:

$ heroku config:unset BUILD_WITH_GEO_LIBRARIES

To ensure no issues on the new deploy, it is highly recommended to clear your build cache.

For more information, checkout our guide to using buildpacks and using multiple buildpacks at once.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support