python34 在 Windows 64 上安装 rtree

python34 在 Windows 64 上安装 rtree

我使用的是 Windows10 64 位,我的操作系统名称是“nt”,我使用 pip 进行安装,但它抱怨 spatialindex_c.dll

File "C:\Users\Bachir\AppData\Local\Temp\pip-build-td64lrth\rtree\rtree\core.py", line 101, in <module> raise OSError("could not find or load spatialindex_c.dll") 
OSError: could not find or load spatialindex_c.dll

我下载了 rtree-0.8.2,然后运行 ​​python setup.py install,但出现了同样的消息

PS C:\Users\Bachir\documents\Python Scripts\Rtree-0.8.2> python setup.py install
Traceback (most recent call last):
  File "setup.py", line 4, in <module>
    import rtree
  File "C:\Users\Bachir\documents\Python Scripts\Rtree-0.8.2\rtree\__init__.py", line 1, in <module>
    from .index import Rtree
  File "C:\Users\Bachir\documents\Python Scripts\Rtree-0.8.2\rtree\index.py", line 6, in <module>
    from . import core
  File "C:\Users\Bachir\documents\Python Scripts\Rtree-0.8.2\rtree\core.py", line 101, in <module>
    raise OSError("could not find or load spatialindex_c.dll")
OSError: could not find or load spatialindex_c.dll
PS C:\Users\Bachir\documents\Python Scripts\Rtree-0.8.2>  

我下载了 spatialindex dll 文件“libspatialindex-1.8.1-win-msvc-2010-x64-x32.zip”。此文件包含 32 位和 64 位,解压并放入安装文件夹,当使用 python setuo.py install 安装时,它仍然抱怨 spatialindex dll 文件

相关内容