问题描述
无法打开& lt; frozen importlib ._bootstrap_external& gt;:找不到该文件(file:// e:/ code / flask_web /< frozen importlib ._bootstrap_external& gt;)。
我的尝试:
Unable to open "& lt; frozen importlib. _bootstrap_external & gt;": The file was not found (file://e:/code/flask_web/< frozen importlib. _bootstrap_external & gt;).
What I have tried:
from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine
from flasker import config
try:
test = config.DevConfig
for t in test:
print(t)
except Exception as e:
print(e)
def get_db():
engine = create_engine(config. SQLALCHEMY_DATABASE_URI)
session = sessionmaker(bind=engine)
return session
推荐答案
Vscode调试Python错误,
Vscode debugging Python error,
调试什么?这个问题不在这个代码中。
你不明白哪个词在
无法打开< frozen importlib ._bootstrap_external> ;:找不到文件(文件:// e:/ code / flask_web /< frozen importlib ._bootstrap_external>)
我们无法帮助您。您要么更改文件请求,要么更改硬盘上的文件位置。
debugging what ? The problem is not in this code.
Which word you don't understand in
Unable to open "< frozen importlib. _bootstrap_external >": The file was not found (file://e:/code/flask_web/< frozen importlib. _bootstrap_external >)
We can't help you on this. Either you change the file request, either you change the position of file on you hdd.
这篇关于Vscode调试Python错误,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!