Search code examples
pythonpandasplotlyplotly-python

ImportError: Plotly express requires pandas to be installed


When I try to import plotly.express I get the error:

ImportError: Plotly express requires pandas to be installed.

The installation notes did not mention having to install anything additional. I can import plotly on its own, I only get the error when importing plotly.express. Any ideas on how to fix this?


Solution

  • Pandas is a dependency that is only used in plotly.express not in plotly. For more you can visit this issue.So you need to install pandas using pip install pandas or conda install -c anaconda pandas