Answers for "do you have to install flask"

5

flask install

# install flask (basic, if path is not set yet)
py -m pip install flask
# or set PATH to use pip:
setx PATH "%PATH%;C:<pathtopythondirectory>Scripts"
pip install flask
# if "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed" [!]:
py -m pip install --trusted-host pypi.python.org pip flask
# if PermissionError: [WinError 5] Access is denied
py -m pip install --user flask
# or via creating a virtual environment venv:
py -m venv c:pathtonewenvironment
# then execute:
c:pathtonewenvironmentScriptsactivate.bat
Posted by: Guest on March-17-2021
0

flask setup

from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello():
  return "Hello World!"

if __name__ == "__main__":
  app.run()
Posted by: Guest on August-15-2021

Code answers related to "do you have to install flask"

Python Answers by Framework

Browse Popular Code Answers by Language