当 pip 依赖解析器想要使用应用程序的冲突 djangoplotly dash 版本时该怎么办?

Red*_*Rum 9 python django plotly plotly-dash

所以我正在尝试与我的 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.
Run Code Online (Sandbox Code Playgroud)

任何帮助表示赞赏

回答

由于 django-plotly-dash 是最新版本,我决定安装 dash 1.20 并通过 dash-bootstrap-components 降级到 0.13.0 ( https://github.com/facultyai/dash-bootstrap-components/releases ?页=2 )

这就像一个魅力......奇怪的是 - Pycharm 有一个导入参考错误,但 Visual Studio 代码没有显示任何错误,我的程序/脚本工作完美。pycharm导入问题可能是由于pycharm中的设置造成的?我不知道

Red*_*Rum 1

由于 django-plotly-dash 是最新版本,我决定安装 dash 1.20 并通过 dash-bootstrap-components 降级到 0.13.0 ( https://github.com/facultyai/dash-bootstrap-components/releases ?页=2 )

这就像一个魅力......奇怪的是 - Pycharm 有一个导入参考错误,但 Visual Studio 代码没有显示任何错误,我的程序/脚本工作完美。pycharm导入问题可能是由于pycharm中的设置造成的?我不知道