django - 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)
解决方案
推荐阅读
- operating-system - 在上下文切换期间,操作系统是否使用 PCB 或内核堆栈来恢复寄存器?
- java - Camel Spring 测试中的生产者模板显示 NullPointerException
- python - 在重新加载页面时,它要求重新提交上一个操作。如何使用重定向?
- c++ - 编译器忽略 #include 指令是否合法?
- amazon-ec2 - 使用 Terraform 在预置机器上安装 Ansible
- android - 通过 Retrofit 调用发布请求时出现 400 bad request 错误
- php - mysql在2列同一张表中使用自动增量的值
- kubernetes - 创建少量资源后部署停止
- c# - MSDN 中的基本 HTTP 客户端代码无法获取结果
- python - 重复最后 X 值的批处理数组