安裝virtualenv,激活它,pip安裝燒瓶,然而,當我嘗試運行腳本或看到它是否識別,我找不到命令。在virtualenv尚未安裝的命令「命令未找到」
(project)[email protected]:~/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)[email protected]:~/project$ flask
-bash: flask: command not found
(project)[email protected]:~/project$ Flask
-bash: Flask: command not found
(project)[email protected]:~/project$ </3
也試過:
(project)[email protected]:~/project$ python -m flask pi.py
/home/gabriel/project/bin/python: No module named flask.__main__; 'flask' is a package and cannot be directly executed
(project)[email protected]:~/project$
我知道這是一個古老的questi但仍然:如果你使用的是虛擬env,那麼你的環境可能會變得混亂,只需重新安裝,並確保可執行文件在那裏。 –