好的,我正在尝试将libspatialindex
安装到我的Ubuntu机器Python上。我按照所有的指示操作,并从http://packages.ubuntu.com/lucid/libspatialindex1下载了 libspatialindex1_1.4.0-1.1_amd64.deb
,并选择了与我的64位机器相对应的版本进行安装。我已经安装了它,然后跳转至Rtree python https://pypi.python.org/pypi/Rtree,以在Python中下载并安装Rtree。我按照文件夹内的install.txt文件中给出的安装说明进行操作。它说要通过$ python setup.py install
运行本地setup.py。我也这样做了,但此后我得到的是:
`root@ubuntu:/# cd /home/neelabh/Desktop/Rtree
root@ubuntu:/home/neelabh/Desktop/Rtree# python setup.py install
Traceback (most recent call last):
File "setup.py", line 4, in <module>
import rtree
File "/home/neelabh/Desktop/Rtree/rtree/__init__.py", line 1, in <module>
from .index import Rtree
File "/home/neelabh/Desktop/Rtree/rtree/index.py", line 6, in <module>
from . import core
File "/home/neelabh/Desktop/Rtree/rtree/core.py", line 110, in <module>
rt.Error_GetLastErrorNum.restype = ctypes.c_int
File "/usr/lib/python2.7/ctypes/__init__.py", line 378, in __getattr__
func = self.__getitem__(name)
File "/usr/lib/python2.7/ctypes/__init__.py", line 383, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: python: undefined symbol: Error_GetLastErrorNum`
有人能帮我解决这个问题吗!
非常感激!