我目前正在使用Spyder for Python,当我打开该程序时,我收到以下错误消息: Error: You have missing dependencies!
rtree>= 0.8.3:无(无)
请安装它们以避免此消息。
注意: 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 "", line 1, in
File "C:\Users\gitte\AppData\Local\Temp\pip-install-kmbt5h2t\rtree\setup.py", line 3, in
import rtree
File "C:\Users\gitte\AppData\Local\Temp\pip-install-kmbt5h2t\rtree\rtree\__init__.py", line 1, in
from .index import Rtree
File "C:\Users\gitte\AppData\Local\Temp\pip-install-kmbt5h2t\rtree\rtree\index.py", line 6, in
from . import core
File "C:\Users\gitte\AppData\Local\Temp\pip-install-kmbt5h2t\rtree\rtree\core.py", line 128, in
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运行得很好,我只是不想在这个过程中遇到问题。谢谢!
发布于 2021-02-28 22:46:58
我在用linux mint anaconda更新后收到了这条消息。
..。当建议的安装缺少的软件包的方法给出一条消息,表明所有必要的依赖项都已安装时。
我用过
,列出修订版本,然后
在哪里
是倒数第二个修订版,在我的例子中是修订版
..。这就解决了问题。修订版11是罪魁祸首。
我注意到它包含了一个新的spyder内核。
https://stackoverflow.com/questions/59981914
复制相似问题