如何修复这个 linter Pylint 安装返回错误?

时间:2020-12-28 07:10:48

标签: python visual-studio-code pylint

我使用 Visual Studio Code。我正在从 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

1 个答案:

答案 0 :(得分:0)

在我看来,2.0.0 (pylint < 2.0.0) 之前的 Pylint 版本与 Python 3.8 不兼容.您可能希望删除 Pylint 上的 <2.0.0 版本限制,然后再次尝试安装。