I'm trying to run Flask in a terminal.
I typed the following command under the folder flask_setup_example, but I get an error message and cannot start it.
$export FLASK_APP = flaskr $export FLASK_ENV = development $flask run
I checked the folder name and extension of the error content, but I'm in trouble because I don't know any other solution.
Corresponding source code
Usage: flask run [OPTIONS] Error: The file/path provided (flaskr) does not appear to exist. Please verify the path is correct. If app is not on PYTHONPATH, ensure the extension is .py
flask_setup_example/flaskr/__ init__.pyThe following programs are placed in the path.
Supplementary information (FW/tool version, etc.)
from flask import Flask def create_app (test_config = None): app = Flask (__ name__) return app
python Python 3.6.0 :: Anaconda 4.3.0
macOS Catalina version 10.15
Terminal version 2.10
Answer # 1
I faced the same error.
I solved it by restarting the terminal.
I don't know the cause.
I think it has already been resolved,
There was no solution in this article, so I will answer.
- error when running python setuppy install
- python - the py file cannot be executed in the task scheduler 0x2 error
- python - error when scraping with selenium and firefox
- python - error in image binarization using cv2adaptivethreshold function
- python - in raspberry pi, the error occurs only in the case of the automatic start program using systemd
- python - categorical_crossentoropy error does not resolve
- readcsv error in python
- python - i want to display an image with pysimplegui, but an error occurs
- [python] graphviz output format error
- python - an error occurs in the if statement program that compares the size of numbers
- python - i get an error when connecting to a voice channel with discordpy
- python 3x - best estimator: i get an error with no syntax, so please tell me what to do
- [python] i don't know how to solve the error
- python - an error has occurred in yolo v3
- python - idle cannot resolve the "rootgeometry" error
- python - tuple error does not resolve
- python - sklearn, svm error
- indent error doesn't go away, python
- python 3x - error after changing to csv file
- python - you may need to restart the kernel to use updated packages error
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- python 3x - typeerror: 'method' object is not subscriptable
- i want to call a child component method from a parent in vuejs
- dart - flutter: the instance member'stars' can't be accessed in an initializer error
- xcode - pod install [!] no `podfile 'found in the project directory