'cannot import name 'dcc' from 'dash'

I have upgraded dash to 2.x, Now in production I am using dash 2.x and also I am using same import statement for dash 2.x but It is not working.

from dash import dcc, html
ImportError: cannot import name 'dcc' from 'dash' (/usr/local/lib/python3.8/dist-packages/dash/__init__.py)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source