我目前正在使用Python的Spyder,当我打开程序时出现以下错误信息:
错误: 您缺少依赖项!
rtree>= 0.8.3: None (NOK)
请安装它们以避免此消息。
注意:Spyder可以在缺少一些依赖项的情况下工作,但为了获得良好的体验,我们强烈建议安装依赖项。
我尝试使用pip install rtree并获得如下输出:
Collecting rtree
Downloading https://files.pythonhosted.org/packages/11/1d/42d6904a436076df813d1df632575529991005b33aa82f169f01750e39e4/Rtree-0.9.3.tar.gz (520kB)
|████████████████████████████████| 522kB 467kB/s
ERROR: Command errored out with exit status 1:
command: 'C:\Users\gitte\Anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\gitte\\AppData\\Local\\Temp\\pip-install-kmbt5h2t\\rtree\\setup.py'"'"'; __file__='"'"'C:\\Users\\gitte\\AppData\\Local\\Temp\\pip-install-kmbt5h2t\\rtree\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: C:\Users\gitte\AppData\Local\Temp\pip-install-kmbt5h2t\rtree\
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\gitte\AppData\Local\Temp\pip-install-kmbt5h2t\rtree\setup.py", line 3, in <module>
import rtree
File "C:\Users\gitte\AppData\Local\Temp\pip-install-kmbt5h2t\rtree\rtree\__init__.py", line 1, in <module>
from .index import Rtree
File "C:\Users\gitte\AppData\Local\Temp\pip-install-kmbt5h2t\rtree\rtree\index.py", line 6, in <module>
from . import core
File "C:\Users\gitte\AppData\Local\Temp\pip-install-kmbt5h2t\rtree\rtree\core.py", line 128, in <module>
raise OSError("could not find or load %s" % lib_name)
OSError: could not find or load spatialindex_c-64.dll
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
请指教我能做些什么。Spyder目前运行良好,我只是不想在后面遇到问题。谢谢!
C:\Users\<your user>\Appdata\Roaming\Python
。 - Carlos Cordoba