visual-studio-code - pylint E4010:无法导入“google.appengine.ext”
问题描述
我的烧瓶应用程序中有这些导入。
from google.appengine.ext import deferred
from google.appengine.api.taskqueue import TaskRetryOptions
from google.appengine.ext import ndb
// List of paths to libraries and the like that need to be imported by auto complete engine. E.g. when using Google App SDK, the paths are not in system path, hence need to be added into this list.
"python.autoComplete.extraPaths": []
所以我尝试了:
{
"python.autoComplete.extraPaths": ["/Users/macbookpro/Developer/google-cloud-sdk/platform/google_appengine/google/appengine.ext"]
}
但这并不能解决问题。如何修复 pylint 错误?我在 Mac OS High Sierra、Visual Studio Code 上。
解决方案
尝试从路径中删除/google/appengine.ext 。重新启动 VSCode。
推荐阅读
- vba - 使用来自另一张工作表和不同列数的数据创建图表
- html - 在 Materialise 的 SideNav 中使用时,JsTree 布局中断
- angular - 服务注入错误角度
- python - 获取 2 个字典中(几乎)匹配键的值并加入它们
- php - 启动电子应用程序并从 Web 浏览器(Chrome、Firefox)向其发送数据
- xml - 如何使用标签字段对 xml 进行排序?
- angular - 桌面上的图标为angular 2的应用
- angular - 如何为 Angular Material Table 提供固定高度
- python - 无法使用 sys.arg[1] 运行文件
- vb.net - VB.Net 打印表单到 PDF 打印机