Spyder 5.4.3 通过 Anaconda Navigator 安装 - 您缺少依赖项! pylsp >=1.7.2,<1.8.0 : 1.7.1 (NOK)

问题描述 投票:0回答:1

我已经在 Mac OS 上通过 Anaconda Navigator 使用 Jupyter Notebook 6 个月了,没有任何问题。今天我第一次去尝试 Spyder,我收到了这条消息:

您缺少依赖项! 强制的: pylsp >=1.7.2,<1.8.0 : 1.7.1 (NOK) Please install them to avoid this message. Note: Spyder could work without some of these dependencies, however to have a smooth experience when using Spyder we strongly recommend you to install all the listed missing dependencies. Failing to install these dependencies might result in bugs. Please be sure that any found bugs are not the direct result of missing dependencies, prior to reporting a new issue.

我已经更新到最新版本的 Anaconda,我已经卸载并重新安装了 Spyder 几次 - 没有变化。

我也尝试过使用

conda install pylsp
conda update pylsp
通过 Mac OS 终端更新 pylsp 但我得到了
PackagesNotFoundError: The following packages are not available from current channels:

似乎这个问题的变体已经出现多年了——这里有很多类似的问题。

我自己没有足够的经验来进一步解决这个问题 - 谁能帮我解决这个问题?

/谢谢

python anaconda spyder
1个回答
0
投票

我有同样的问题。我花了一段时间才弄清楚发生了什么,但问题是 python-lsp-server 包,它在警告框中被不方便地缩短为“pylsp”。以管理员身份打开 Anaconda 提示符。如果你运行

conda list
,你会看到为你的 python 构建安装的所有包的列表。向上滚动按字母顺序排列的列表以找到 python-lsp-server,并确认版本确实低于 1.7.2。如果是这样,以下内容对我有用,可以更新它。

conda install -c conda-forge python-lsp-server=1.7.2
© www.soinside.com 2019 - 2024. All rights reserved.