【问题标题】:Unable to start the Python language server无法启动 Python 语言服务器
【发布时间】:2021-05-17 14:46:24
【问题描述】:

我打开了 Atom 并弹出了这个错误,我不确定我应该在这里做什么。 它要求我执行“python -m pip install 'python-language-server[all]'”,但是当我运行它时。它给了我错误

错误:

错误:找不到满足要求 pylint>=2.5.0 的版本; extra == "all"(来自 python-language-server[all])(来自版本:0.15.2、0.16.0、0.18.0、0.18.1、0.19.0、0.20.0、0.21.0、0.21 .1, 0.21.2, 0.21.3, 0.22.0, 0.23.0, 0.24.0, 0.25.0, 0.25.1, 0.25.2, 0.26.0, 0.27.0, 0.28.0, 1.0.0 , 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.5.0, 1.5 .1、1.5.2、1.5.3、1.5.4、1.5.5、1.5.6、1.6.0、1.6.1、1.6.2、1.6.3、1.6.4、1.6.5、1.7.0 , 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.9.0, 1.9 .1、1.9.2、1.9.3、1.9.4、1.9.5) 错误:找不到 pylint>=2.5.0 的匹配分布; extra == "all"(来自 python-language-server[all])

在此之后,我尝试了“python -m pip install 'python-language-server'”,但这给出了错误

错误:

警告:脚本 pyls 安装在不在 PATH 上的“/Users/baner75418/Library/Python/2.7/bin”中。 考虑将此目录添加到 PATH,或者,如果您希望禁止显示此警告,请使用 --no-warn-script-location。

请帮助我接下来应该做什么,我也在 macOS Big Sur 上。

【问题讨论】:

  • 但是错误信息说要安装 pylint no?
  • pip install pylint

标签: python macos terminal pip atom-editor


【解决方案1】:

这是python-language-server 中的一个错误。我只是reported它。

同时您可以尝试使用pip install --no-binary 从源代码分发中安装python-language-server 以解决该错误:

pip install --no-binary=python-language-server 'python-language-server[all]'

【讨论】:

    猜你喜欢
    • 2020-02-07
    • 1970-01-01
    • 2019-03-28
    • 2019-07-20
    • 2011-08-05
    • 1970-01-01
    • 2013-12-08
    • 2015-08-15
    • 2021-07-08
    相关资源
    最近更新 更多