python - Installed Flask in a virtualenv yet "command not found" -
installed virtualenv, activated it, pip installed flask, , yet, when try run script or see if recognised, command not found.
(project)gabriel@debian:~/project$ pip list flask (0.10.1) itsdangerous (0.24) jinja2 (2.7.3) markupsafe (0.23) pip (1.5.6) setuptools (5.5.1) werkzeug (0.10.4) (project)gabriel@debian:~/project$ flask -bash: flask: command not found (project)gabriel@debian:~/project$ flask -bash: flask: command not found (project)gabriel@debian:~/project$ </3
also tried:
(project)gabriel@debian:~/project$ python -m flask pi.py /home/gabriel/project/bin/python: no module named flask.__main__; 'flask' package , cannot directly executed (project)gabriel@debian:~/project$
flask 0.10 has no flask
command, added in 0.11. if pi.py
has smarts run app, such if it's using flask-script, command you're looking is:
$ python pi.py
you can install flask-cli flask
command in 0.10 if can't upgrade 0.11.
Comments
Post a Comment