我正在使用Django,當我使用geoip軟件包或導入GeoIP時,我在CentOS上得到以下錯誤,而它在Ubuntu 12.04上運行良好。python錯誤,同時在CentOs服務器上導入GeoIP
的錯誤如下
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.
請嘗試幫助我,我不能走得更遠沒有這個。