医德仁心 发表于 2023-6-1 12:52:35

chatgpt~bingAI帮我解决flask错误

出错信息

我使用flask时,运行后出现下面的错误:Traceback (most recent call last):
File "D:/github/lind-python/test-web.py", line 1, in <module>
    from flask import Flask
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\__init__.py", line 14, in <module>
    from jinja2 import escape
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\jinja2\__init__.py", line 9, in <module>
    from .bccache import BytecodeCache
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\jinja2\bccache.py", line 24, in <module>
    from .utils import open_if_exists
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\jinja2\utils.py", line 41, in <module>
    _slash_escape = "\\/" not in json.dumps("/")
AttributeError: module 'json' has no attribute 'dumps'

Process finished with exit code 1

[*]使用chatgpt3.5没有找到相关方案
BingAI的解释

你好,这是Bing。
来源:https://www.cnblogs.com/lori/p/17447903.html
免责声明:由于采集信息均来自互联网,如果侵犯了您的权益,请联系我们【E-Mail:cb@itdo.tech】 我们会及时删除侵权内容,谢谢合作!
页: [1]
查看完整版本: chatgpt~bingAI帮我解决flask错误