【问题标题】:Pylint error VScodePylint错误VScode
【发布时间】:2018-01-01 04:00:51
【问题描述】:

我最近将我的 Python 从 2.7.13 更改为 3.6.4,通过 VScode 构建文件时,虽然一切正常,但我不断得到一个窗口显示:

运行 linter 'pylint' 时出错

我的控制台输出显示如下:

Linting with pylint failed.
Command failed: pylint --errors-only --msg-template='{line},{column},
{category},{msg_id}:{msg}' --reports=n --output-format=text c:\Users\OscarRamirez\Documents\Python\Tracker\Try.py

【问题讨论】:

  • 如果这就是错误的全部,那还不算太多。你可以在命令行上单独运行 pylint 吗?就像pylint

标签: python python-2.7 python-3.x visual-studio-code pylint


【解决方案1】:

您的 pylint 版本错误。您在 VS Code 中拥有的当前版本可能仅支持 Python2 代码。 pylint的版本很多,你可能只是有一个不支持python3的旧版本。

【讨论】:

    猜你喜欢
    • 2019-09-25
    • 1970-01-01
    • 1970-01-01
    • 2019-11-09
    • 2021-12-24
    • 2023-03-27
    • 2018-12-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多