Python安装第三方包RTree时候报错

ITACHI_CN 2015-04-25 12:59:31
root@ubuntu://home/kyon/Desktop/Rtree-0.8.2/Rtree-0.8.2# python setup.py test
Traceback (most recent call last):
File "setup.py", line 4, in <module>
import rtree
File "/home/kyon/Desktop/Rtree-0.8.2/Rtree-0.8.2/rtree/__init__.py", line 1, in <module>
from .index import Rtree
File "/home/kyon/Desktop/Rtree-0.8.2/Rtree-0.8.2/rtree/index.py", line 6, in <module>
from . import core
File "/home/kyon/Desktop/Rtree-0.8.2/Rtree-0.8.2/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


安装其他包没问题 这个包不知道怎么回事 求教

Python版本2.7.8
...全文
779 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
m0_56227109 2021-07-19
  • 打赏
  • 举报
回复

你好,请问这个问题您解决了吗,我现在又遇到这个问题了

哇哇小仔 2016-10-26
  • 打赏
  • 举报
回复
请参考:http://www.cnblogs.com/yangzhang-home/p/5999812.html
summerblue2014 2015-11-05
  • 打赏
  • 举报
回复
请问怎么装libspatialindex??
ITACHI_CN 2015-04-25
  • 打赏
  • 举报
回复
引用 2 楼 panghuhu250 的回复:
没安装或者没找到libspatialindex.
我装了libspatialindex
panghuhu250 2015-04-25
  • 打赏
  • 举报
回复
没安装或者没找到libspatialindex.
ITACHI_CN 2015-04-25
  • 打赏
  • 举报
回复
木有人吗=-=

37,743

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • WuKongSecurity@BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧