我正在使用 Django,当我使用 geoip 包或导入 GeoIP 时,我在 centos 上收到以下错误,而它在 ubuntu 12.04 上运行良好。
错误如下
from django.contrib.gis.utils.geoip import GeoIP
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/django/contrib/gis/utils/geoip.py", line 67, in <module>
'Try setting GEOIP_LIBRARY_PATH in your settings.' % lib_name)
django.contrib.gis.utils.geoip.GeoIPException: Could not find the GeoIP library (tried "GeoIP"). Try setting GEOIP_LIBRARY_PATH in your settings.
请尝试帮助我,没有这个我不能走得更远。