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


0
0

学不厌

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 之后

0
0

编程浪子

2018-08-17

pip install flask_script 

0
2
学不厌
Traceback (most recent call last): File "manager.py", line 2, in from application import app,manager File "/var/www/html/flaskweixin/application.py", line 3, in from flask_script import Manager ImportError: No module named flask_script
2020-04-30
共2条回复

Python Flask构建微信小程序订餐系统(可用于毕设)

微信小程序 + Python Flask 打造订餐系统全栈应用,可用于毕设。

1709 学习 · 1889 问题

查看课程