首页 > 解决方案 > Django-plolty-dash 错误:对于 ImportError:无法从“破折号”导入“破折号”

问题描述

Python version: 3.7.9
Django version: 3.1.1
django_plotly_dash: 1.4.2

django_plotly_dash在测试 Django 项目可以正常工作后,我尝试安装包。也就是说,开发服务器工作正常,可以毫无问题地打开网页。但是,在我安装django_plotly_dash包并将以下内容添加到项目设置后:

INSTALLED_APPS = [
    ...
    'django_plotly_dash.apps.DjangoPlotlyDashConfig',
    ...
    ]

马上,我有一个错误

ImportError: cannot import name 'Dash' from 'dash' (project\app\__init__.py)

标签: djangoinstallationimporterror

解决方案


推荐阅读