[Python] Import dash_bootstrap_components doesn’t work

Discussão em 'Python' iniciado por Stack, Julho 31, 2025.

  1. Stack

    Stack Membro Participativo

    Issue: I pip3.8 installed dash_bootstrap_components and Import dash_bootstrap_components doesn’t work. How can I fix my error ? this is what I have:

    # Creates the interactive dashboard using the dash library

    import numpy as np

    import pandas as pd

    import dash

    from dash.dependencies import Input, Output, State

    import matplotlib.pyplot as plt

    from dash_table import DataTable

    from dash import dcc

    from dash import html



    import dash_bootstrap_components as dbc

    from PIL import Image

    #import plotly.graph_objects as go

    from plotly.subplots import make_subplots

    #from plotly.colors import qualitative



    import plotly.graph_objects as go


    Error:

    Traceback (most recent call last):

    File "/home/marlainna456/corona/dashboard.py", line 11, in <module>

    import dash_bootstrap_components as dbc

    ModuleNotFoundError: No module named 'dash_bootstrap_components'


    pip3.8 install --user dash_bootstrap_components

    also tried importing dash_bootstrap_components as dbc.

    in PythonAnywhere

    Continue reading...

Compartilhe esta Página