相关疑难解决方法(0)

libspatialindex和python上的Rtree

好的,所以我正在尝试安装libspatialspatialindex到我的Ubuntu机器python.我确实按照所有说明libspatialindex1_1.4.0-1.1_amd64.debhttp://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 …
Run Code Online (Sandbox Code Playgroud)

ubuntu spatial-index r-tree python-2.7 python-3.x

7
推荐指数
1
解决办法
5044
查看次数

标签 统计

python-2.7 ×1

python-3.x ×1

r-tree ×1

spatial-index ×1

ubuntu ×1