使用VScode 我已经安装了这三个烧瓶依赖项
Flask 1.0.2
Flask-Cors 3.0.7
Flask-PyMongo
运行app.py时,仍然给我一个错误。 我的app.py代码:
import os
from flask import Flask, render_template, jsonify, request, redirect
app = Flask(__name__)
@app.route("/")
def home():
return render_template("index.html")
if __name__ == "__main__":
app.run()
因此,当我访问该URL时,应该呈现index.html,然后运行与index.html相关联的js,对吗?它给我以下错误:
File "c:/Users/haneu/Desktop/MINE/Ind_Projects/full Stock prediction/app.py", line 2, in <module>
from flask import Flask, render_template, jsonify, request, redirect
File "C:\Users\haneu\Anaconda3\lib\site-packages\flask\__init__.py", line 21, in <module>
from .app import Flask, Request, Response
File "C:\Users\haneu\Anaconda3\lib\site-packages\flask\app.py", line 25, in <module>
from . import cli, json
File "C:\Users\haneu\Anaconda3\lib\site-packages\flask\cli.py", line 18, in <module>
import ssl
File "C:\Users\haneu\Anaconda3\lib\ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed: The specified module could not be found.