Nee*_*ant 7 ubuntu spatial-index r-tree python-2.7 python-3.x
好的,所以我正在尝试安装libspatialspatialindex到我的Ubuntu机器python.我确实按照所有说明libspatialindex1_1.4.0-1.1_amd64.deb从http://packages.ubuntu.com/lucid/libspatialindex1下载并下载了amd64版本,因为我的机器是64位机器.我安装它然后跳转到Rtree python https://pypi.python.org/pypi/Rtree下载并在python中安装Rtree.我按照文件夹中install.txt文件中给出的安装说明进行操作.它说运行本地setup.py $ python setup.py install我也做了,但我得到的是
`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`
Run Code Online (Sandbox Code Playgroud)
有人可以帮我解决这个问题!
我真的很感激!
| 归档时间: |
|
| 查看次数: |
5044 次 |
| 最近记录: |