Installed Flask in a virtualenv yet “command not found”

后端 未结 8 908
暗喜
暗喜 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:02

    Flask 0.10 has no flask command, it was added in 0.11. If pi.py has the smarts to run your app, such as if it's using Flask-Script, the command you're looking for is:

    $ python pi.py
    

    You can install Flask-CLI to get the flask command in 0.10 if you can't upgrade to 0.11.

提交回复
热议问题