所以我正在尝试与我的 django 应用程序集成,但是我在渲染图表时遇到问题。我使用的是 VSCode,它没有发现依赖冲突。
但是当我开始使用Pycharm时。它说我的 Dash 版本是 1.11,它满足 django-plotly-dash,但不满足需要 2.0.0 的 dash_bootstrap_components
我现在安装了 Dash 1.10 版本,它与两个应用程序冲突,只是为了显示以下错误消息:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following de
pendency conflicts.
django-plotly-dash 1.6.6 requires dash<1.21.0,>=1.11, but you have dash 1.10.0 which is incompatible.
dash-bootstrap-components 1.0.3 requires dash>=2.0.0, but you have dash 1.10.0 which is incompatible.
如有任何帮助,我们将不胜感激
由于 django-plotly-dash 是最新版本,我决定安装 dash 1.20 并通过 dash-bootstrap-components 降级到 0.13.0 (https://github.com/facultyai/dash-bootstrap-components /releases?page=2)
这就像一个魅力......奇怪的是 - Pycharm 有一个导入参考错误,但 Visual Studio 代码没有显示任何错误,我的程序/脚本运行完美。 pycharm导入问题可能是由于pycharm中的设置造成的?我不知道
解决此问题最简单的方法是安装大于1.11且小于1.21.0的兼容dash Vision。
解决方案:
py -m pip install dash==1.20.0
由于 django-plotly-dash 是最新版本,我决定安装 dash 1.20 并通过 dash-bootstrap-components 降级到 0.13.0 (https://github.com/facultyai/dash-bootstrap-components /releases?page=2)
这就像一个魅力......奇怪的是 - Pycharm 有一个导入参考错误,但 Visual Studio 代码没有显示任何错误,我的程序/脚本运行完美。 pycharm导入问题可能是由于pycharm中的设置造成的?我不知道
安装扩展程序之前,只需按照提示操作即可
pip安装h5py pip 安装打字扩展 pip 安装轮子
然后安装你的扩展