我正在使用Windows10 64位,我的os.name是'nt',我使用pip进行安装,但是它抱怨spaceindex_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>
我下载了spacespaceindex dll文件'libspatialindex-1.8.1-win-msvc-2010-x64-x32.zip'。该文件包含32位和64位,解压缩并放在安装文件夹中,使用python setuo.py安装时,它仍然抱怨spaceindex.dll文件