请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

ImportError: No module named 'flask_script'

(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

3回答

编程浪子 2020-05-01 00:23:01

你好 你执行下如下命令,将下面的结果贴出来,谢谢

which python

然后在执行下

python


0 回复 有任何疑惑可以回复我~
学不厌 2020-04-30 11:39:26

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 回复 有任何疑惑可以回复我~
编程浪子 2018-08-17 12:58:42

pip install flask_script 

0 回复 有任何疑惑可以回复我~
  • 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 之后
    回复 有任何疑惑可以回复我~ 2020-04-30 11:39:50
  • Traceback (most recent call last):
      File "manager.py", line 2, in <module>
        from application import app,manager
      File "/var/www/html/flaskweixin/application.py", line 3, in <module>
        from flask_script import Manager
    ImportError: No module named flask_script
    回复 有任何疑惑可以回复我~ 2020-04-30 12:25:07
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信