Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/359.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 从django.contrib.gis.geos导入GEOSException,GEOSGeometry,从str导入错误:无法导入名称GEOSException_Python_Django_Django Oscar - Fatal编程技术网

Python 从django.contrib.gis.geos导入GEOSException,GEOSGeometry,从str导入错误:无法导入名称GEOSException

Python 从django.contrib.gis.geos导入GEOSException,GEOSGeometry,从str导入错误:无法导入名称GEOSException,python,django,django-oscar,Python,Django,Django Oscar,我正在从事django oscar项目,以创建定制的电子商务应用程序 当我使用python manage.py runserver命令运行项目时, 我犯了这个错误“ 如何安装GEOS?要使用django的地理空间功能,您需要另外安装相关库: from django.contrib.gis.geos import GEOSException, GEOSGeometry, fromstr ImportError: cannot import name GEOSException"

我正在从事django oscar项目,以创建定制的电子商务应用程序

当我使用
python manage.py runserver
命令运行项目时, 我犯了这个错误“


如何安装GEOS?

要使用django的地理空间功能,您需要另外安装相关库:

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