V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ghostlotus
V2EX  ›  问与答

vscode 下 pylint 无法工作,完全没有下划线

  •  
  •   ghostlotus · 2018-12-21 03:48:06 +08:00 · 2876 次点击
  •   指定的图片不存在
    这是一个创建于 1977 天前的主题,其中的信息可能已经有所发展或是发生改变。
    visual studio code 版本 1.30.1
    python 版本 3.7.1 64 位

    用户设置
    {
    "python.pythonPath": "C:\\Users\\GhostLotus\\AppData\\Local\\Programs\\Python\\Python37\\python.exe",
    "python.linting.pylintEnabled": true,
    "python.linting.enabled": true
    }

    不光是 pylint,flake8 也不行

    怎么解决?
    7 条回复    2018-12-21 17:42:04 +08:00
    casparchen
        1
    casparchen  
       2018-12-21 04:56:30 +08:00
    python.linting.pylintPath ?
    CallMeReznov
        2
    CallMeReznov  
       2018-12-21 08:45:13 +08:00
    你 flake8 或 pylint 装了吗?
    ghostlotus
        3
    ghostlotus  
    OP
       2018-12-21 11:04:20 +08:00
    那肯定是装了阿
    ghostlotus
        4
    ghostlotus  
    OP
       2018-12-21 11:09:38 +08:00
    添加了
    {
    "python.pythonPath": "C:\\Users\\GhostLotus\\AppData\\Local\\Programs\\Python\\Python37\\python.exe",
    "python.linting.pylintPath": "C:\\Users\\GhostLotus\\AppData\\Local\\Programs\\Python\\Python37\\Scripts\\pylint.exe",
    "python.linting.pylintEnabled": true,
    "python.linting.enabled": true
    }

    还是不行
    ashes1122
        5
    ashes1122  
       2018-12-21 14:16:54 +08:00
    @ghostlotus 路径?
    ashes1122
        6
    ashes1122  
       2018-12-21 14:19:48 +08:00
    @ghostlotus 路径不是这样写的吧。
    ghostlotus
        7
    ghostlotus  
    OP
       2018-12-21 17:42:04 +08:00
    @ashes1122 就是这么写的阿,不然还能怎么写
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1252 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 23:38 · PVG 07:38 · LAX 16:38 · JFK 19:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.