第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

為什么運(yùn)行此 Dash 應(yīng)用程序會產(chǎn)生 TypeError

為什么運(yùn)行此 Dash 應(yīng)用程序會產(chǎn)生 TypeError

莫回?zé)o 2023-05-09 09:51:46
我收到以下錯誤:"Traceback (most recent call last):  File "app.py", line 11, in <module>    app = dash.Dash()  File "C:\Users\oefel\AppData\Local\Programs\Python\Python38-32\lib\site-packages\dash\dash.py", line 268, in __init__self.server = flask.Flask(name) if server else None  File "C:\Users\oefel\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\app.py", line 559, in __init__self.add_url_rule(  File "C:\Users\oefel\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\app.py", line 67, in wrapper_func    return f(self, *args, **kwargs)  File "C:\Users\oefel\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\app.py", line 1217, in add_url_rule    self.url_map.add(rule)  File "C:\Users\oefel\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\routing.py", line 1388, in add    rule.bind(self)  File "C:\Users\oefel\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\routing.py", line 730, in bind    self.compile()  File "C:\Users\oefel\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\routing.py", line 794, in compile    self._build = self._compile_builder(False).__get__(self, None)  File "C:\Users\oefel\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\routing.py", line 951, in _compile_builder    code = compile(module, "<werkzeug routing>", "exec")TypeError: required field "type_ignores" missing from Module"在運(yùn)行 Dash 應(yīng)用程序時。這是我的代碼:import dashfrom dash.dependencies import Input, Outputimport dash_rendererimport dash_html_components as html  # div_tagsimport dash_core_components as dcc  # graphsimport plotlyapp = dash.Dash()colors = {    'background': '#111111',    'text': '#7FDBFF'}app.layout = html.Div(style={'backgroundColor': colors['background']}, children=[    html.H1(        children='Hello Dash',        style={            'textAlign': 'center',            'color': colors['text']        }    ),我進(jìn)行了一些搜索,但沒有發(fā)現(xiàn)任何可以表明此錯誤含義的信息。誰能提供任何見解?謝謝你!
查看完整描述

1 回答

?
互換的青春

TA貢獻(xiàn)1797條經(jīng)驗(yàn) 獲得超6個贊

您需要更新您的 Werkzeug 版本以兼容 Python 3.8。



查看完整回答
反對 回復(fù) 2023-05-09
  • 1 回答
  • 0 關(guān)注
  • 126 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號