【问题标题】:Visual Code pylint: unable to import webapp2 and google.appengine.apiVisual Code pylint:无法导入 webapp2 和 google.appengine.api
【发布时间】:2017-12-16 14:17:06
【问题描述】:

我是在 Ubtuntu 上使用 Visual Code 的新手……但我按照所有必要的说明为 python 安装了谷歌应用引擎。 然后在 Visual Code 上编写我的 python 代码,我已经修改了我的 USER SETTINGS :

{ 
 "python.autoComplete.extraPaths": [
    "/usr/local/google_appengine",
    "/usr/local/google_appengine/lib"],
"python.autoComplete.addBrackets": true,
"workbench.welcome.enabled": false,
"workbench.iconTheme": "vscode-icons",
"python.pythonPath": "/usr/bin/python", 
}

请问我该如何解决这个问题?

【问题讨论】:

    标签: python visual-studio google-app-engine visual-studio-code pylint


    【解决方案1】:

    将以下库路径添加到您的 "python.autoComplete.extraPaths" 列表中:

    "/usr/local/google_appengine/api",
    "/usr/local/google_appengine/lib/webapp2-2.5.2"
    

    【讨论】:

      猜你喜欢
      • 2017-09-20
      • 2019-03-31
      • 2014-11-05
      • 1970-01-01
      • 2021-03-24
      • 2020-10-13
      • 1970-01-01
      • 1970-01-01
      • 2022-11-16
      相关资源
      最近更新 更多