Installed Flask in a virtualenv yet “command not found”

后端 未结 8 915
暗喜
暗喜 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 19:52

    I had similar issue. In my case I've moved my project to another directory and the PATH was still pointing to the old directory. I fixed it by deleting my venv and creating a new one.

    Make sure your env is activated and check your path echo $PATH and make sure your //venv/bin exists in your PATH.

提交回复
热议问题