Have installed Dash on macOS, but gives error while running the script

Deadly 提交于 2021-02-10 05:29:17

问题


I am trying to run dash through Jupiter notebook on macOS. It does get imported and when I try to run app.run_server command it fails. it gives me the following error Errno 8] nodename nor servname provided, or not known

Please adviseenter image description here and have a look at the screenshot uploaded.


回答1:


Just specify the explicit host name in the app.py Default hostname causes such issue

if __name__ == '__main__':
    app.server.run(port=8000, host='127.0.0.1')


来源:https://stackoverflow.com/questions/61002897/have-installed-dash-on-macos-but-gives-error-while-running-the-script

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!