问题描述
烧瓶开发的新手并尝试在我的项目中导入烧瓶,但是 Pylint
在 VSCode E0401中给出此错误:无法导入烧瓶"
,但是我已经在项目中安装了flask,但是我不知道如何解决,如何解决.
Am new in flask development and trying to import flask in my project but Pylint
is giving this error in VSCode E0401:Unable to import 'flask'
, but I installed flask already in my project but I don't know how to solve this, how can I resolve it.
我的虚拟环境已安装,并且显示的图像如下:
My virtual environment is installed , and the image which proves is below:
错误正在获取代码,以下划线标出:
The error am getting code , the underlined from:
我想念什么?
推荐答案
解决方案是切换翻译器
简单的解决方案:
转到命令面板类型- Python:选择解释器
Go to command paletteType-- Python:Select Interpreter
选择您创建的虚拟环境
专门针对vscode回答的问题也可以对其他代码起作用.
answered specifically for vscode can work for other also .
这篇关于E0401:无法导入“烧瓶"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!