Installed Flask in a virtualenv yet “command not found”

后端 未结 8 921
暗喜
暗喜 2020-12-14 19:36

Installed virtualenv, activated it, pip installed flask, and yet, when i try to run a script or see if it recognised, i get command not found.

(project)gabri         


        
8条回答
  •  不知归路
    2020-12-14 20:03

    I'm using version 0.12.2 and got the same issue.Here is my solution:

    python -m flask run FLASK_APP=/path/to/filename.py

提交回复
热议问题