ImportError: No module named 'flask_script'
来源:7-2 登陆退出准备工作,数据库GUI工具演示
慕粉3298487
2018-08-16
(abel) [root@localhost order]# python manager.py runserver
Traceback (most recent call last):
File "manager.py", line 2, in <module>
from application import app,manager
File "/home/www/order/application.py", line 3, in <module>
from flask_script import Manager
ImportError: No module named 'flask_script'
3回答
-
编程浪子
2020-05-01
你好 你执行下如下命令,将下面的结果贴出来,谢谢
which python
然后在执行下
python
00 -
学不厌
2020-04-30
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: flask_script in /usr/local/lib/python3.6/dist-packages (2.0.6)
Requirement already satisfied: Flask in /home/chen/.local/lib/python3.6/site-packages (from flask_script) (1.1.2)
Requirement already satisfied: Jinja2>=2.10.1 in /home/chen/.local/lib/python3.6/site-packages (from Flask->flask_script) (2.11.2)
Requirement already satisfied: click>=5.1 in /usr/lib/python3/dist-packages (from Flask->flask_script) (6.7)
Requirement already satisfied: Werkzeug>=0.15 in /home/chen/.local/lib/python3.6/site-packages (from Flask->flask_script) (1.0.1)
Requirement already satisfied: itsdangerous>=0.24 in /home/chen/.local/lib/python3.6/site-packages (from Flask->flask_script) (1.1.0)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/lib/python3/dist-packages (from Jinja2>=2.10.1->Flask->flask_script) (1.0)
运行pip install flask_script 之后
00 -
编程浪子
2018-08-17
pip install flask_script
022020-04-30
相似问题