Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

from django.contrib.gis.geos import GEOSException, GEOSGeometry, fromstr ImportError: cannot import name GEOSException

I am working on django-oscar project to create custom eCommerce application.

When i run my project using python manage.py runserver command, I got this error "

from django.contrib.gis.geos import GEOSException, GEOSGeometry, fromstr
    ImportError: cannot import name GEOSException"

How to install GEOS?

like image 448
rajan patel Avatar asked Aug 15 '14 05:08

rajan patel


1 Answers

To use the geospatial functionality of django, you need to additionally install the related libraries:

https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/

like image 116
monkut Avatar answered Sep 16 '22 19:09

monkut