gpt4 book ai didi

python-3.x - 导入错误 : No module named 'flask_jwt_extended' in PYTHON FLASK

转载 作者:行者123 更新时间:2023-12-03 17:32:55 26 4
gpt4 key购买 nike

在 localhost:5000 脚本正在运行,没有任何错误。但是当涉及到符号链接(symbolic link)时,appache 日志中会出现错误。

[Sun Jun 10 17:07:16.170057 2018] [wsgi:error] [pid 30438] [client 120.29.113.65:32852] mod_wsgi (pid=30438): Exception occurred processing$
[Sun Jun 10 17:07:16.170435 2018] [wsgi:error] [pid 30438] [client 120.29.113.65:32852] Traceback (most recent call last):
[Sun Jun 10 17:07:16.170461 2018] [wsgi:error] [pid 30438] [client 120.29.113.65:32852] File "/var/www/html/salesappserver/app.wsgi", lin$
[Sun Jun 10 17:07:16.170465 2018] [wsgi:error] [pid 30438] [client 120.29.113.65:32852] from api import app as application
[Sun Jun 10 17:07:16.170471 2018] [wsgi:error] [pid 30438] [client 120.29.113.65:32852] File "/var/www/html/salesappserver/api.py", line $
[Sun Jun 10 17:07:16.170474 2018] [wsgi:error] [pid 30438] [client 120.29.113.65:32852] from flask_jwt_extended import JWTManager
[Sun Jun 10 17:07:16.170491 2018] [wsgi:error] [pid 30438] [client 120.29.113.65:32852] ImportError: No module named 'flask_jwt_extended'
[Sun Jun 10 17:07:17.501917 2018] [wsgi:error] [pid 30439] [client 120.29.113.65:32858] mod_wsgi (pid=30439): Target WSGI script '/var/www/$
[Sun Jun 10 17:07:17.501994 2018] [wsgi:error] [pid 30439] [client 120.29.113.65:32858] mod_wsgi (pid=30439): Exception occurred processing$
[Sun Jun 10 17:07:17.502345 2018] [wsgi:error] [pid 30439] [client 120.29.113.65:32858] Traceback (most recent call last):
[Sun Jun 10 17:07:17.502372 2018] [wsgi:error] [pid 30439] [client 120.29.113.65:32858] File "/var/www/html/salesappserver/app.wsgi", lin$
[Sun Jun 10 17:07:17.502376 2018] [wsgi:error] [pid 30439] [client 120.29.113.65:32858] from api import app as application
[Sun Jun 10 17:07:17.502382 2018] [wsgi:error] [pid 30439] [client 120.29.113.65:32858] File "/var/www/html/salesappserver/api.py", line $
[Sun Jun 10 17:07:17.502393 2018] [wsgi:error] [pid 30439] [client 120.29.113.65:32858] from flask_jwt_extended import JWTManager
[Sun Jun 10 17:07:17.502411 2018] [wsgi:error] [pid 30439] [client 120.29.113.65:32858] ImportError: No module named 'flask_jwt_extended'

这是主要问题 ImportError: No module named 'flask_jwt_extended' 我已经满足了 FLASK 中的要求
(salesappserver) ubuntu@ip-172-31-3-35:~$ pip install flask-jwt-extended
Requirement already satisfied: flask-jwt-extended in ./salesappserver/lib/python3.6/site-packages (3.10.0)
Requirement already satisfied: Flask in ./salesappserver/lib/python3.6/site-packages (from flask-jwt-extended) (1.0.2)
Requirement already satisfied: PyJWT in ./salesappserver/lib/python3.6/site-packages (from flask-jwt-extended) (1.6.4)
Requirement already satisfied: Werkzeug>=0.14 in ./salesappserver/lib/python3.6/site-packages (from flask-jwt-extended) (0.14.1)
Requirement already satisfied: Jinja2>=2.10 in ./salesappserver/lib/python3.6/site-packages (from Flask->flask-jwt-extended) (2.10)
Requirement already satisfied: itsdangerous>=0.24 in ./salesappserver/lib/python3.6/site-packages (from Flask->flask-jwt-extended) (0.24)
Requirement already satisfied: click>=5.1 in ./salesappserver/lib/python3.6/site-packages (from Flask->flask-jwt-extended) (6.7)
Requirement already satisfied: MarkupSafe>=0.23 in ./salesappserver/lib/python3.6/site-packages (from Jinja2>=2.10->Flask->flask-jwt-extended) (1.0)
(salesappserver) ubuntu@ip-172-31-3-35:~$

请帮我。提前致谢

最佳答案

你不见了flask-jwt-extended模块。通过运行以下命令获取包,然后重试。

pip install flask-jwt-extended

关于python-3.x - 导入错误 : No module named 'flask_jwt_extended' in PYTHON FLASK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50786201/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com