【问题标题】:How can I fix this linter Pylint install return error?如何修复此 linter Pylint 安装返回错误?
【发布时间】:2020-12-28 07:10:48
【问题描述】:

我使用 Visual Studio 代码。我正在从 Python 2.7 切换到 Python 3.8。尝试安装 linter Pylint 时,我收到以下错误消息:

Could not find a version that satisfies the requirement pylint<2.0.0 (from versions: )
No matching distribution found for pylint<2.0.0

我该怎么做才能安装 Pylint

Screenshot of the error message

【问题讨论】:

  • 不添加文字截图。而是将该文本复制并粘贴到您的答案中。
  • 你的 Python 解释器版本是多少?为什么要安装旧版本的 pylint? -- 可能那些旧版本的 pylint 与您的新版本 Python 解释器不兼容。
  • 感谢 Sinoroc 是 vss 代码自动安装程序,在 python2.7 版本,出现这个错误,当我切换到 python 3.8 版本时,似乎没问题,pylint 可以正常工作,但我没有不知道为什么
  • 在我看来,pylint &lt;2.0.0 的版本与 Python 3.8 不兼容。您可能希望删除 pylint 上的 &lt;2.0.0 版本约束。

标签: python visual-studio-code pylint


【解决方案1】:

在我看来,2.0.0 (pylint &lt; 2.0.0) 之前的 Pylint 版本与 Python 3.8 不兼容。您可能想要删除 Pylint 上的 &lt;2.0.0 版本限制,然后尝试重新安装。

【讨论】:

    猜你喜欢
    • 2017-09-02
    • 2020-10-16
    • 2019-07-08
    • 2018-10-22
    • 2013-06-26
    • 1970-01-01
    • 1970-01-01
    • 2012-06-12
    • 1970-01-01
    相关资源
    最近更新 更多