'What to do when pip dependency resolver wants to use conflicting django plotly dash versions of a application?
So I'm trying to integrate plotly with my django app however I'm having an issue rendering a chart. I was using VSCode which did not pick up the dependency conflict.
However when i started to use Pycharm. It said my Dash was version 1.11 which satisfies the django-plotly-dash but did not satisfy the dash_bootstrap_components which required 2.0.0
I have now installed Dash version 1.10 which conflicts with both apps just to show the error message below:
Relevant error code
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.
Any help is appreciated
Answer
As django-plotly-dash is on the latest version, i've decided to install dash 1.20 and downgrade by dash-bootstrap-components to 0.13.0 (https://github.com/facultyai/dash-bootstrap-components/releases?page=2)
This has worked like a charm.. weirdly - Pycharm has a reference error for the imports but visual studio code does not show any error and my program/script works perfectly. The pycharm import issue may be due to a setting in pycharm? idk
Solution 1:[1]
The simplest way to solve this issue is to install the compatible dash vision that is greater than 1.11 and less than 1.21.0.
Solution:
py -m pip install dash==1.20.0
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Suraj Rao |
