Installed Flask in a virtualenv yet “command not found”

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

    I ran into this issue while running through the tutorial for version 0.12, so for people who find this thread hitting this issue with a later version, I was able to get the server running by using:

    $ python -m flask run
    
    0 讨论(0)
  • 2020-12-14 20:06

    I had to activate again the virtualenv

    . venv/bin/activate
    

    This worked for me

    0 讨论(0)
提交回复
热议问题